• This article is great, but I’m stuck in an infinite loop of not being able to elevate at command prompt, PowerShell, or WinRE command prompt. Booting into WinRE is looking to “sign in as an administrator, but there are no administrator accounts”.

    Any further ideas? Btw, I’m free to reboot as many times as is needed.

    Thanks in advance.

  • Thanks for this!
    I am running into this with Posh-SSH. Version 2.2 will connect to older Cisco devices, whereas new versions won’t. And 2.2 won’t connect to other devices we have to access in the same script, but the new version will.
    Hopefully the info here will help us avoid finding and re-writing for a different SSH module/solution (sure looks like it will). 🙂

  • 100 percent on the difficulty in filtering properties. Honestly, that makes CLI a dealbreaker for me in many contexts. Thanks for reading! -Tim

  • I think it’s great that both are available. For someone coming from a Linux background, the AZ CLI is really familiar and consistent with what they’re used to. For me, who has a lot of PowerShell experience, I’m much happier with AZ PowerShell. I’m so used to having my outputs be objects, it’s always a frustration to get the output from AZ CLI.

    At least I found “-o table” for AZ CLI, which helps a lot. But filtering properties, I have to look up the reference on how to do it every time.

  • Being forced to use a MS account during installation is NOT a very nice action on MS’s part. This workaround is a godsend! Thanks!

  • Hi John,

    Can we add multiple show commands in this script, we need to execute two more commands to while taking backup. Can help me with that

  • Thanks for your reply. According to the router firmware documentation it support SMB1 and SMB2. There is no option in the UI to change the SMB version. Is there any way to force usage of SMB2?

  • So, how source computer resolves PCNAME (not FQDN format ) without NetBIOS or LLMNR? The only remained way is DNS.
    As I know, source computer uses DNS and if it fails it goes for NetBIOS or LLMNR.

    *NetBIOS has a backup named LLMNR which is still active when we disable NetBIOS.

  • Nice article
    we have network shared resources (folders and printers) using PCNAME . Is it okay if we disable NetBIOS over TCP/IP? I think although it’s SMB, but at the first step system uses NetBIOS to find the IP behind PCNAME

  • Hello Surender Kumar.
    I was wonder if you can give me an advise or point to the correct search material.
    I can not seem to be able to figure out how to get TMP to trigger Pin request on boot.

    All machines in our company are part of AD.
    I use NinjaRMM to execute power shell scripts remotely.
    Checkpoint Endpoint Security to trigger BitLocker encryption process on deployment.

    Unfortunately, I was recently tasked with helping my boss to let go of one of our employees next week.
    The issue I got stuck with is he is a developer and remote. The only way I found that I can/should lock him out of the machine is by sending PowerShell script to enable Pin request on boot. Then just restart the machine.
    I am not that good with PowerShell and BitLocker TPM process.
    I can not seem to figure out how to trigger it.

    Setting the Pin by open

    Any help would be greatly appreciated.
    Thank you.

  • Hi David! Do you have .NET SDK installed? If not, that might be your problem. .NET SDK has a “pack” command which PowerShellGet uses to create packages.

  • It is my understanding, looking at a VMware Blog, the vCenter Server Essentials that comes with the vSphere Essentials Kit ($596), does not offer vCenter Server Backup & Restore (also known as the VCSA Appliance Management via Port 5480 – File Based Backup). vCenter Server Essentials which comes with the vSphere Essentials Kit is basically the same features as vCenter Server “Foundation” which also doesn’t have vCenter Back and Restore.

    See here in this VMware Blog

  • I am trying to use this script, but it’s just doing “nothing” when I run it.

    PS C:Scripts> .Backup-GroupPolicy -Path “C:ScriptsGPO_BUs” -Server DC
    PS C:Scripts>

    Any insight on this?

  • Hi there, thank you for this helpful post! I have a little conundrum though, and am an absolute newb. I can’t get my Powershell to recognise the PsExec file at all. Downloaded a “64 version”, didn’t help. Tried all kinds of inputting..

    Why could this happen? Other prompts do work

  • Thanks so much, have been looking for a way to clean up my deployment images for Windows. This is going to be fun. Might try to script it after I have the required information.

  • Excellent information! I appreciate the screenshots. Is there a way to automate this? Since it is linux of course there is. I guess the question is, what is the best way to automate snapshot creation and removal? Say, hourly snapshots for 24 hours. Thanks!

  • Good article, nicely written. Another similarity is that from azure portal, one can launch a cloud shell in either of these two environments.

  • Load More
© 4sysops 2006 - 2023


Please ask IT administration questions in the forums. Any other messages are welcome.


Log in with your credentials


Forgot your details?

Create Account