New answers tagged

0 votes

How to create .zip archive containing preserved symlinks (shortcuts) in Windows (CLI)

Since Windows 10 (some 17*** build, end of 2017), the 'tar' command has been added natively. So now for preserving symlinks I would suggest something like: tar -cvzf mybackup.tar.gz folder-to-backup ...
0 votes

How to save/print a powershell terminal text in the end of a script run through powershell commands?

Solve this with: https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.host/start-transcript?view=powershell-7.3 and, https://learn.microsoft.com/en-us/powershell/module/microsoft....
1 vote
Accepted

Microsoft Powershell Signature Script - Stopped working with latest office 365 build

Right! I finally got to the bottom of this and what was going on. It was in fact to do with Roaming Signatures in Outlook 365 - a new feature turned on at the beginning of October 2022. The good news ...
0 votes

Scheduling task on Windows Server 2016 using group managed service account failing

another option is to run 'klist purge –li 0x3e7' to force system to retrieve new ticket to update computer group membership and allow to retrieve service account password
0 votes

Accessing more properties of Local Security Policy with powershell

Typically how this is done is to run secedit.exe and import the value(s) you want to implement or change from an .inf file. A more sophisticated solution would use PowerShell Desired State ...
  • 34.6k
0 votes

How to make PowerShell read from a pipe?

hi, you can download the latest version, which is updgraded one
  • 101
0 votes

Can't remote reboot domain PC

Try by running Invoke-command -computername (gc computers.txt) -scriptblok {Restrt-computer -Force} This worked for me where the method you tried produced invalid_operation_exception access denied.
1 vote
Accepted

Stop and Start IIS Website remotely using WMSVC

WMSVC was solely developed for IIS Manager remote management. Remote PowerShell management isn't going through WMSVC. Thus, "The end goal though is we want to be able to connect to the site ...
  • 1,001
0 votes

Remove a user from ACL completely using PowerShell

After some tests, I'd say that there's no need to use an external module for this matter. As you can read here: https://blog.netwrix.com/2018/04/18/how-to-manage-file-system-acls-with-powershell-...
0 votes

I want to use openssl pkcs12 to convert lots of pem files into pfx files - but is it possible to pass in a password via the command line?

According to the builtin help, the arguments are: -password p set import/export password source -passin p input file pass phrase source -passout p output file pass phrase source You may just ...
  • 1,119
0 votes

Remote Powershell not working but test-wsman does

I faced this issue on VMWare and fixed it by following these steps I removed both ServerA and ServerB from Active Directory Users and Computer. I then changed Network-ID of both ServerA and ServerB ...
  • 97
2 votes

Connect-IPPSSession with CertificateThumbPrint cmdlet showing sign in popup

Edit Nov 21 2022: The current pre-release version 3.0.1 of ExchangeOnlineManagement has a fix for this. I had a look at the cmdlets of the ExchangeOnlineManagement module 3.0.0. The Problem The ...
0 votes
Accepted

I cannot get an otherwise functional Powershell script to run on a schedule

Alright, I seem to have figured it out. The article I was using was slightly misleading. Unlike in the article, my "Arguments" field could not be simply written as: Set-ExecutionPolicy ...
0 votes

Import PFX Certificate via PowerShell with full certificate chain

Since you didn't include your output for Get-PfxData, I'm not sure if my solution applies to your issue. But here is mine: PS> Get-PfxData -FilePath "\\path\to\cert.p12" -Password $pwd | ...
  • 317

Top 50 recent answers are included