Azure VPN - How can I export and import client certificate using PowerShell...
<Problem> I tried to install client certificate to client computer. But password error was displayed. Procedure that I performed is following. 1. I exported the pfx file using PowerShell script...
View ArticleIE Proxy Setting for all users instead of Current User
Hello All,I am working on creating a Ps script to check IE Proxy Enable value from registry.The Key that I am checking is this : HKCU\Software\Microsoft\Windows\CurrentVersion\Internet SettingsI...
View ArticleHow to Bulk AD users update/modify attributes in AD and Exchange Mailboxes
Hi,How to update/modify the AD-Users(Bulk users) in AD as well as Exchange 2013-2016. It had more than 230 users and attributes needs to change. Kindly suggest.1.Display name 2.First name 3.Last name...
View ArticleLabel.Text New line
I have added label text in PS1 form, and it get value but ffor new word show in same line not go to next line, i have tried adding (\n) but its does help in PS1 script. Foreach($lt in $selectd) {...
View ArticleGet-ADUser - no code runs after that stage
Hi All.I am writing a script to send an email to a user.I have the user login Id but I am going onto AD to get the users email address, my script does a few things and then gets the users email from AD...
View ArticleEscaping HTML
Hi All.I am looking to send an email out using PS, the html sample that i want to use has a lot of double quotes, i am thinking of the best way to escape it. Is it possible to do a single escape or do...
View Articlehelp with set-alias command
Hello, I am just learning Power Shell , and I have a question regarding set-alias that I wish to get your help and expertise.I am trying a very simple set-alias command that I learn from the book...
View ArticleNeed to remove all but 5 newest files, matching name, leave all files that...
Using examples from other sources, I have the following script. It finds the five newest files in Arguement1, matching an string from Arguement2, and deletes the rest. $Zpath = $args[0] ##write-host...
View ArticleDisplay memory used by a given process
From Task Manager I see that a process whose name is "OUTLOOK" uses 83,33 MB of memory.I issued the following command:Get-Process -name "OUTLOOK" |select ProcessName, Path, VirtualMemorySize,...
View ArticleStart-Transcript for all powershell sessions on a machine
Hi,Is it possible to enable something like Start-Transcript for all powershell sessions (Globally for one machine)?I have a windows service that execute powershell script, i would like to record the...
View ArticleAutomate creation of accounts using powershell from a webbase tool
I'm looking for a way on how I can automate creation of accounts for our users. it is one of the daily task that I do and I wanted to make it more efficient by doing an automation. I already got an...
View ArticleA parameter cannot be found that matches parameter name 'InformationAction'
I'm trying to remotely rename a list of PCs in parallel but I keep getting the error "Microsoft.PowerShell.Utility\Write-Error : A parameter cannot be found that matches parameter name...
View Articlehow to export csv without doublequote
I ran the following comandls |export-csv "d:\a.csv"The result is like the following, every field is double quoted, is there any way to not export double quote. Currently the silly approach I used is to...
View ArticleHow to use powershell script to close ipv6 for multiple virtual network cards?
Hi everyone,I'm trying to use powershell script to turn off ipv6 for my multiple virtual network cards, but I failed.Could anyone tell me what I did wrong?Thank you in advance.$vmnets=Get-NetAdapter |...
View ArticleAdding SIP attributes to ProxyAddresses Field
Hello,I'm trying to add SIP attributes to everyone's ProxyAddresses field based on their UPN.I'm using the following script:Set-SIP.ps1 -OU...
View ArticleHelp with write-host or write-output
Hello, I am trying to debug my Power Shell Script, and I try write-host, write-output but they are not working.I am using Power Shell ISE , I wonder if there is a way to display output to the...
View ArticleAdding an image as an overlay to an existing image
Hi All, One of my customers is looking towards adding a branded screen saver to their fleet. I have their corporate logo as a PNG with transparency. Rather than working with a fixed set of static...
View ArticleRunning a PS script against each servers logical drive(s)
Hi All, I'm trying to create a script to enumerate the logical disks of a list of servers and run a script against each drive, how is this done in powershell?E.G.$cim = new-cimsession -comp server1,...
View ArticleServer parameter not found in New-PSdrive
I am trying to connect to a PSdrive in another domain, however it says:New-PSDrive: A parameter cannot be found that matches parameter name 'Server'Earlier this command used to work:I am running the...
View ArticleCompare-Object returns only one match of many
I have 2 spreadsheets that I have imported to PowerShell arrays.They BOTH have USERNAME as a property, but otherwise they have different properties.In one of them (array1) the USERNAME is unique among...
View Article