Mark commented on
Test-NetConnection vs. Test-Connection – Testing a network connection with PowerShell 6 days, 10 hours ago
Is there any way that i can use powershell or powercli to test if port open or not and then tell where packet gets dropped and what is the interface ip
Michael Webber commented on
Get-ADComputer – Display computers in OU or AD group with PowerShell 1 week, 2 days ago
I used this to get the OU:
Get-ADComputer -Filter {OperatingSystem -Like “*Server*”} -Properties * | select Name, @{n=’OU’;e={$_.canonicalname -replace “/$($_.cn)”,””}}, Enabled
Joe Smo IT commented on
Create a certificate request file with alias support using a PowerShell script 1 week, 5 days ago
Run the netsh command from an admin elevated command prompt.
This has changed.
The correct commands can be found here:
https://docs.microsoft.com/en-us/powershell/module/PSReadline/Set-PSReadlineOption?view=powershell-5.1Here is the script from the original page using the way back machine.
Mike Kanakos commented on
SecretsManagement module for PowerShell: Save passwords in PowerShell 2 weeks, 2 days ago
Cameron,
I ended up writing extensively about customizing your PowerShell command prompt at my site. The reason for this is that the post is very detailed and longer than the posts we usually do on 4sysops. If you would like to know more check out my article here:
https://www.commandline.ninja/customize-pscmdprompt/Mike Kanakos commented on
PowerShell script to display information about Active Directory users 2 weeks, 2 days ago
Hi Gokul,
The tool in this article does not accept pipeline input because i did not include the parameter to do so. This required to be able to pass a list to the function. Take a look at my website https://www.commandline.ninja . I'll write up a newer version of this tool on my site this week.
Lee Roy Anthony commented on
Change remote IP address and DNS entry with a PowerShell script 2 weeks, 6 days ago
Hi Emanuel!
Giving credit to you as my online ‘mentor’, I now have scripts on how to automate VM creation (complete with virtual hard drive and Win10 OS, and virtual network). Another one that I was able to create is a script that automates network configuration and internet settings configuration to enable internet access for the generated VMs. All thanks to you!
Now as I went back in here, it seems like I’m not the only one having trouble with parameter availability across Powershell versions. We use Powershell 5.1 in here. Now I’m looking forward to create 2 programs/utilities out of the 2 scripts that I’ve mentioned above, complete with password verification before you can use said utilities. However, I’ve just found out that the parameters -MaskInput and -AsPlainText are only available in PowerShell 7.0.
Admitting again that I’m a newbie in PowerShell coding, I wanted to create codes to verify equality of passwords being entered. If you have a more efficient syntax that is 5.1 friendly, that would be great! But my obvious question should be: What equivalent parameters can I use? Or is there a workaround set of syntax in 5.1 so I can convert to plain text string what has been stored in System.Security.SecureString (in readable or unencrypted form, of course).
Good to be back in this forum! Hehehe!
Thank you!
Hi Robert,
It shows nothing special just I set up:
ExtensionInstallForcelist: cchlfgjjhgdoibhfabfonddfjhmocjcg;C:ProgramDataEdgeupdate.xml
ExtensionInstallSources:
files:///C:/ProgramData/Edge/*I try to relocate extension files to another directory, maybe Edge doesn’t reach them in ProgramData.
Thanks for the reply and I’ll let you know about result.I wasn’t aware that functionality existed to be honest with you.
If you go to edge://policy what does it show?
Hi,
If I want to install extensions from the local file system how I need to add its path, please?
I create these keys buth the extension doesn’t installed:HKLM/SOFTWAREPoliciesMicrosoftEdgeExtensionInstallForcelist
1=cchlfgjjhgdoibhfabfonddfjhmocjcg;C:ProgramDataEdgeupdate.xmlHKLM/SOFTWAREPoliciesMicrosoftEdgeExtensionInstallSources
1=files:///C:/ProgramData/Edge/*Ah thanks for your comment. I now understand a bit of why it wasn’t working before.
I was running the remove/block script by as is without having used your add extension script first.
After I ran the add extension script and then followed up with the removal it works as intended.
When I ran this without using the add extension script it would just disable and grey out the ability to enable the extension but doesn’t remove the extension from the list (chrome://extension).
Would you be able to expand on how I could run the removal/block script, and have it also remove the it from the list without going through the add extension script first? Hopefully that makes sense haha.It should remove it yes.
Has the policy refreshed?
Is it a managed extension that still shows on the forceInstall key?Hi Robert,
Thanks for the write up. From my understanding of this script should also remove the extension from the Chrome extension list (chrome://extension) right?
If it is meant to I can’t seem to get that bit to work. If not how does one remove the extension from the chrome list?Thanks,
ThaiBilly joined the group
PowerShell 3 weeks, 5 days ago
Michael Pietroforte commented on
How to install the PowerShell Active Directory module 3 weeks, 6 days ago
Many thanks! I fixed the typo now.
Michael Pietroforte edited the doc How to install the PowerShell Active Directory module in the group
PowerShell 3 weeks, 6 days ago
There’s a typo in the Windows 11 PowerShell command.
Instead of :
Get-WindowsCapability -Name RSAT* -Online | Add-Windows Capability -OnlineIt should be:
Get-WindowsCapability -Name RSAT* -Online | Add-WindowsCapability -OnlinePrepcsolution commented on
Installing OpenSSH on Windows 10 (1803 and higher) and Server 2019 4 weeks, 1 day ago
Error 0x800f0954 usually occurs at the time of installing the .NET Framework or sub-components on Windows 10. Here’s how to resolve this issue in simple steps.
In recent days, most Windows 10 users are reporting error 0x800f0954 while installing .NET Framework 3.5 or its subcomponents. Whatever may be the reason behind the error, the good thing is that you can fix the error by following some simple steps. Here are the best possible solutions to deal with this situation.
Khaled Elsayed joined the group
PowerShell 1 month ago
- Load More