Posts

Functions to Import Skype and Exchange Remote Commandlets

These two functions will check DNS for any MX records and sipinternalTLS DNS records and then attempt to establish a remote powershell connection to those servers.  Function Import-SkypePSTools{ Write-Host "Loading Skype For Business Module" $SkypeServer = "https://"+ ((Resolve-DnsName -Name "_sipinternaltls._tcp.$env:USERDNSDOMAIN" -Type SRV).nametarget).tolower()+ "/ocspowershell" $SkypeSession = New-PSSession -ConnectionUri $SkypeServer -Credential (Get-Credential) Import-PSSession $SkypeSession } Function Import-ExchangePSTools{ Write-Host "Loading Exchange Module" $ExchangeServer = "http://"+ ((Resolve-DnsName -Name $env:USERDNSDOMAIN -Type MX).nameexchange).tolower() + "/powershell/" $ExchangeSession = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionURI http://bpmmail.bpminc.com/powershell/ -Authentication Kerberos -Credential (Get-Credential) Import-PSSession $ExchangeSession }...

Get-InstalledSoftware PowerShell Commandlet

This cmdlet will get the installed software that is contain in the HKLM set of keys from a local, remote or list of computers, and will return various information about the programs. It will return the name, current version and uninstall string . It pulls from the same locations that Add/Remove Programs pulls from. This cmdlet was taken from the URL listed below, but I added the uninstall member to it to aid for use in application installation scripts. Updated 1/15/18. GIS 2.0. Supports pipeline data for software names. Supports get-help capabilities. Added cmdlet binding support, including verbose, debug, whatif and confirm support. Contains line by line commenting for explanation. Function Get-InstalledSoftware{ <# .SYNOPSIS Gets installed software on local or remote computers. .DESCRIPTION This Script will query the registry to get programs that are registered as installed on the machine It will query both the 32bit registry and the 64bit regist...

How To Fix Miracast for a Specific Device when the Firewall blocks All Public Connections

If you are attempting to Miracast from a device that has group policy on it that disables all public connection, the Miracast will fail. You can get around this by getting up a scheduled task. First, create Task with custom XML Filtering with this filtering <QueryList>   <Query Id="0" Path="Microsoft-Windows-WLAN-AutoConfig/Operational">     <Select Path="Microsoft-Windows-WLAN-AutoConfig/Operational">*[EventData[Data[@Name='SSID'] and (Data='SSID NAME')]] </Select>   </Query> </QueryList> The script that will run every time the above event happens will run this code: $source = 'Miracast Wifi Direct Fix' $WifiDirectSSIDName = "SSID Name" New-EventLog -Logname Application -source $source -ErrorAction SilentlyContinue (Get-ChildItem "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\NetworkList\Profiles") | foreach{if (($PSItem).GetValue("ProfileName...

My Windows 10 Remove Apps Script

This Script will remove apps but leave Calculator and photos, Sticky Notes and Alarms. Must run as admin to remove provisioned apps. This can be run on an offline image, or an online one. Edit: Updated 11/14/17 for Creator's Update Edit2: updated 3/20/18 to add Microsoft.Xbox .TCUI $applist = "Microsoft.Windows.CloudExperienceHost, Microsoft.AAD.BrokerPlugin Microsoft.AccountsControl Microsoft.BioEnrollment Microsoft.LockApp Microsoft.MicrosoftEdge Microsoft.Windows.AssignedAccessLockApp Microsoft.Windows.ContentDeliveryManager Microsoft.Windows.ParentalControls Microsoft.Windows.ShellExperienceHost Microsoft.XboxGameCallableUI Microsoft.XboxIdentityProvider Windows.ContactSupport windows.immersivecontrolpanel Windows.MiracastView Windows.PrintDialog Windows.PurchaseDialog windows.devicesflow Microsoft.Windows.Cortana Microsoft.WindowsStore Microsoft.Windows.FeatureOndemand.InsiderHub Microsoft.WindowsCalculator Microsoft.Windows.Photos Microsoft...

Distractions and Time Management

Image
I’m always reading about different time management techniques but when I try to put them into practice, it can be difficult to properly utilize time management strategies in my office. I work as an IT Help Desk Technician, and I am no stranger to constant interruptions. Over the next couple of posts, I want to explore the relationship between a workplace designed around distractions and the effect it has on productivity. However difficult it may be, I do believe that there are ways to combat this and argue that you must in order to advance your career. If workers are constantly distracted or have to work on multiple tasks at once, it’s not just an annoyance that workers should be expected to overcome with willpower. Studies have shown that multitasking makes people demonstrably worse at the task at hand. If workers are forced to change tasks frequently, there is a “switch-time” involved. One cannot instantly refocus one’s attention to a new task if distracted by a colleag...