-
This article really helped us migrating our CA server from Windows 2012 R2 to Windows server 2022.
-
Thank you VERY much! Your script will save me a lot of time and effort, and I really appreciate it.
For anyone else reading the comments, upgrading to Powershell v7 and using the SHA1 algorithm for hashing sped up my deduping by a HUGE margin. I think the first time I ran it it took over 7 minutes. But the with Powershell v7 and changing from MD hashing to SHA1 it was down to seconds – approx 30 seconds. That’s a huge improvement in speed.
-
Mihai B. commented on Recover Active Directory domain controllers with nonauthoritative restore 1 day, 21 hours ago
Hello, which is the proper method for restoring a lone domain controller – it’s the only dc in the network (very small site), thus no replication…
Kind regards,
-
How to set retention time while using write-s3object command in s3 client module?
-
Ubuntu supports a new Active Directory bridging tool suite called ADsys https://github.com/ubuntu/adsys/wiki/01.-Welcome worth taking a look!
-
This is a great way to find duplicates. However, I have a significant number of small files (over 100,000) that I’m trying to scan. So for them, filesize is a good enough indicator to move them and investigate further. But I can’t seem to modify what you’ve got above to just use filesize. It finds the duplicates, and opens the selection window, but the move command fails because the Path is blank or null. What am I doing wrong?
Here’s my command:
Get-ChildItem -Path “C:MyFiles” -Filter *.jpg -File -Recurse `
| Group -Property Length | where { $_.Count -gt 1 } `
| foreach { $_.Group | select Path, Name, Length } `
| Out-GridView -Title “Select files to move to R:Dupes” -PassThru `
| Move-Item -Destination “R:Dupes” -Force -Verbose -
Is there a powershell command that can be pushed out for force the recovery key to be sync’ed with the computer account in AD? We currently use a script to activate bitlocker, set the PIN, require TPM and then push the recovery key to AD, but previously, it was all manually done and there are computers out in our environment that do not have their recovery keys in AD.
-
Emad commented on How to fix “The User Profile Service service failed the sign-in. User profile cannot be loaded.” 3 days, 4 hours ago
copying NTUSER.DAT from remote pc fixed the problem.
thanks
-
Neel commented on
Export and import to and from Excel with the PowerShell module ImportExcel 1 week, 1 day ago
Hi Sir,
Thank you for this tutorial. Please can you help me with deleting first 4 rows in xlsx while importing.
-
Mohammed Asif commented on Install Docker on Windows Server 2019 1 week, 1 day ago
How to install the docker license on windows server 2019 ? Thank you
-
I wish that they would move Evaluate-STIG to the public.cyber.mil site but I understand this is a little healthy competition going on. It’s a very useful tool to do a thorough job of evaluating the DISA maintained STIGs with limited manuals required. The additional notes are very useful for resolution as well.
-
Facundo commented on
Use PowerShell Invoke-Command to run scripts on remote computers 1 week, 3 days ago
Hi I think my latest comment didn’t get posted.
If I run it like this I can run it for several computers :Invoke-Command -FilePath D:-facundoStart-Cleanup.ps1 -ComputerName computer1, computer2, computer3, etc
This will run without issue.
But when I try to set it with a variable ($VMs) and foreach and invoke It won’t work.Error:
New-PSSession: A positional parameter cannot be found that accepts argument ‘computername’ -
Facundo commented on
Use PowerShell Invoke-Command to run scripts on remote computers 1 week, 3 days ago
Hi, Yes. I can even run for a couple if I run it like this
Invoke-Command -FilePath D:-facundoStart-Cleanup.ps1 -ComputerName Computer1, Computer2, Computer3, etc.
If I run it like that it will clean all computers after ComputerName without issue.
But when I try to add a variable for bulk computers and, use Invoke and foreach It doesn’t work.Error:
New-PSSession: A positional parameter cannot be found that accepts argument ‘computername’ -
Facundo commented on
Use PowerShell Invoke-Command to run scripts on remote computers 1 week, 3 days ago
Hello. Thank you very much for the article. It is really helpful.
I wanted to ask you something. Perhaps you can help.
I have a ps1 file. A function.
I am trying to make it run against several remote computers. I am trying to use invoke-command to achieve this but it is not working.
This how I am trying to run it. Can you please tell me if this is OK or how you would run it?$VMS= get-content “D:-facundoVMS.txt”
foreach ($V in $VMS) {Invoke-Command -computername $v -FilePath D:-facundoStart-Cleanup.ps1}
-
Hi. Does work. I’m using Oracle Linux 9.1 under Windows. Installed ansible (sudo yum install *ansible* and all good.
-
Thank you for your reply ( 9 Months is not a time!). However you didn’t answer my question. Maybe you intended to answer another thread, and the text just slipped just in here.
I repeat my question: Does this all work, when execution policy is set to AllSigned per GP?
Essence is: do digitally signed PS scripts work with Ansible? -
Hi Brandon,
Thank you for the wonderful insight.
I run ansible playbook and used all the modules like- win_command/shell/powershell or win_mapped_drive to map and unmap . Task runs successfully but it doesn’t map/unpad the drive in the server.
Ansible ver is 2.7.7
WIn ver – 10What are all the other ways to accomplish this task.
Thank you
-
Carsten Ringgaard commented on
Display access rights on Active Directory OUs with PowerShell 1 week, 4 days ago
Set-Location AD:
-
Peter Depoorter commented on Find compromised passwords in Active Directory with Have I Been Pwned 1 week, 4 days ago
Hi, there’s an easier way, DSInternals contains a function “passwordquality”
See https://github.com/MichaelGrafnetter/DSInternals/blob/master/Documentation/PowerShell/Test-PasswordQuality.md#test-passwordquality -
cesar ramirez commented on Dockerizing a Node.js application with NGINX, Let’s Encrypt, and Docker Compose 1 week, 4 days ago
Would it be possible to do a video of it….??
- Load More