App Attach – Create Shortcut
To create a shortcut to a mounted VHD app, app attach app, set target file to explorer.exe and arguments to shell:AppsFolder\AdobeAcrobat2020_1nrb0vh0kd882!ACROBAT
Lab Core | The Lab of MrNetTek
A blog about IT, technical solutions, and code.
To create a shortcut to a mounted VHD app, app attach app, set target file to explorer.exe and arguments to shell:AppsFolder\AdobeAcrobat2020_1nrb0vh0kd882!ACROBAT
Unregister Package (unload app) Remove-AppxPackage AdobeAcrobat2020_20.1.30002.0_x64__1nrb0vh0kd882 Register Package (load app) Add-AppxPackage -Path ‘C:\Program Files\WindowsApps\AdobeAcrobat2020_20.1.30002.0_x64__1nrb0vh0kd882\AppxManifest.xml’ -DisableDevelopmentMode -Register Launch App start shell:AppsFolder\AdobeAcrobat2020_1nrb0vh0kd882!ACROBAT Create Desktop Shortcut explorer.exe shell:AppsFolder\AdobeAcrobat2020_1nrb0vh0kd882!ACROBAT Notes Element Not Found Check the Access Control Entry for each user; look for corrupted entries. Resets ACE (Remove Corrupted Entries) icacls “C:\Program Files\WindowsApps\AdobeAcrobat2020_20.1.30002.0_x64__1nrb0vh0kd882” /c Read More …
On an Azure AD machine, acquiring the user’s UPN is required to add a user into the local administrators group. To obtain the UPN, you will first need the user SID. And, the caveat to all of this, is that those values must be returned in the System Account security context, meaning…the normal (Current User) Read More …
On an Azure AD machine, acquiring the user’s UPN is required to add a user into the local administrators group. To obtain the UPN, you will first need the user SID. And, the caveat to all of this, is that those values must be returned in the System Account security context, meaning…the normal (Current User) Read More …
Notes Get-Date [System.TimeZoneInfo]::GetSystemTimeZones()
Output Notes win32_bios class Get-Wmiobject Write-Host ForEach
Notes New-ScheduledTaskAction New-ScheduledTaskTrigger Register-ScheduledTask shutdown -f -s -t 60 -c “MESSAGE HERE”
PowerShell $(gwmi win32_computersystem).Rename(“PC-NewName”) Rename-Computer -NewName PC-NewName -Restart Invoke-command -computer PC-OldName -script {rename-computer PC-NewName; restart-computer} Commands WMIC ComputerSystem where Name=”PC-NewName” call Rename Name=NewName netdom renamecomputer %computername% /newname:PC-NewName /userd:domain\adminaccount /passwordd:password /reboot:10 Notes Rename-Computer Invoke-Command Netdom.exe WMIC.exe Get-WmiObject (gwmi)
Notes Clear-Host Import-Module New-Object New-SelfSignedCertificate Start-Transcript X509Store Class
This is how you add an option to switch to PS7 (and back to PS5) to the ISE Menu. #1 Open PowerShell ISE #2 Run: $PSVersionTable Check PS Version #3 Copy/Paste/Run #4 Click Add-ons > ‘Switch to PowerShell 7’ #5 Run: $PSVersionTable Check PS Version Snapshot