
Quick PowerShell for the win
I’m always grabbing useful PowerShell commands or small scripts that I find useful.
Here a couple from this week.
I needed to deploy a shortcut to our users desktop with Intune. Looks like its not a built in feature of Intune yet so PowerShell for the win.
$new_object = New-Object -ComObject WScript.Shell
$destination = $new_object.SpecialFolders.Item("AllUsersDesktop")
$source_path = Join-Path -Path $destination -ChildPath "\\Salesforce.url"
$source = $new_object.CreateShortcut($source_path)
$source.TargetPath = "http://login.salesforce.com"
$source.Save()
The details can be found here
How to deploy custom URL shortcuts with Microsoft Intune (nickydewestelinck.be)
I needed to quickly dump the users of an AD group to a file. Its quick and easy.
Get-ADgroupmember -identity “AD group name” | get-aduser -property displayname | select name, displayname >C:\temp\result.txt
More Stories
How to configuration SMB3 and encryption
We have not enforced SMB3 and encryption, but have now started a SOX review and need data copied between servers...
Windows and SQL editions comparison
Capturing data on the limits of both windows server and SQL based on the edition for quick reference. Comparison of...
Enable passwordless security key sign-in to on-premises resources by using Azure AD
As we transition to Azure AD computers and leave domain joined PCs behind. Most of our data and applications are...
windows update for business and intune
We are having issues with machines not patching even with the Intune policies set. I'm documenting different post I've found...
Enabled the Lock Screen for inactive users
Quick link from Twitter, don’t want to lose the link https://twitter.com/anoopmannur/status/1497256566206181376?s=21 https://www.anoopcnair.com/set-automatic-lock-screen-for-inactive-device-intune/