Workspace Step 1 - PowerShell Script for Zenworks
HiI need a Power Shell script for Zenworks. We are doing a software asset management assessment with a customer with Zenworks as a discovery tool, but there is no available Power Shell script to run...
View ArticleDifference between “RenewDHCPLease()” and “IPConfig /renew”?
am using RenewDHCPLease() to renew the IP address of the system. What is the exact difference between RenewDHCPLease() and ipconfig /renew? Which one is better to use in Powershell? Is it necessary to...
View ArticleCopy certain files from folder
Hello, I have this vb script from an old post, it copies files specified in a filelist:OptionExplicit ' The source path for the copy operation.Const strSourceFolder ="H:" ' The target path for the copy...
View ArticleSetting the "LogonWorkstations" attribute to All Computers via powershell
Hey everybody, long time reader, first time poster so I apologize if I am posting in the wrong area.I need to change the "logonworkstations" attribute for a chunk of our users to be able to log on to...
View ArticleError when invoking command to create scheduled task
I am writing some automation to update the IP of a server after it has been renamed.I am getting the following error message when the automation runs the invoke command to create the scheduled task:...
View ArticleTrying to create a powershell script for logs on Multiple computers in a domain
Hi so I currently have a script I have been running to get Application, Backup, and System Logs and convert them into CSV for easy use in importing them into SQL for parsing. Currently it only works on...
View Articlerun a powershell command using csv as an input
I am trying to run a powershell Office365 command "(Get-MsolUser -UserPrincipalName $test).Licenses.ServiceStatus" from a csv input.My scripts looks like$test = Import-Csv -Path...
View ArticleStart process .exe pops a window looking for a new app to open - excel.exe.
I run this:PS C:\WINDOWS\system32\WindowsPowerShell\v1.0> Start-Process -"C:\Program Files (x86)\Microsoft Office\root\Office16\EXCEL.EXE"It pops up a box that it wants a new app to open this....
View ArticlePowerShell Scripting
has anyone worked on Certificates using PowerSHell ??Creation of certificates on remote CA Server ??If yes, what are powershell capabilities on certificates ?Manvendra Bele
View ArticleLooking for WMI Class.
Hello!My task is to get connection quantity from my Remote Desktop Gateway server. I Found WMI class: root\cimv2\TerminalServices Win32_TSGatewayConnection But there is no quantity there. Any...
View ArticlePowershell: howto get certificates of specific user on an RDS-server?
Hi,I'd need to know if a specific user on an RDS-server (on which are 40 users) has a specific user certificate. So I'd like to request all user certs for that user on that remote server.Please advise...
View ArticlePS: menu multiple selection?
Hi,I'd like to create a menu selection, works for 1 selection but what about multiple selections, f.e. 1,2?Got it working via workaround, please advise howto implement properly.J.$ADGroups =...
View Articlehow to run cmd script in powershell
cd c:\Windows\System32\inetsrv appcmd.exe set site /site.name:"MySite" /bindings:http/*:80:MySite1.com,http/*:80:MySite2.comhow to run above script thru powershell please guide me.
View ArticleRun get-process -IncludeUserName command with simple user
Hello Scripting Guys!I wrote a dummy Task manager GUI for simple users via PowerShell. It works fine when I run with administrator privilege but it doesn't work with non administrator user.The...
View Articlerun every third month
I want to run a powershell script, on the third Thursday of third month. I will be running the script using a gmsa so have to set it up through powershell, and as the monthly option isn't available in...
View ArticlePowerShell ISE -- Script Analyzer
How do I install and use a Script Analyzer in the PowerShell ISE?
View ArticleHelp Comparison of string array with another array string (VBScript) I'm...
Example:arry1=("micro","Microsoft.32899","<g class="gr_ gr_209 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling ins-del multiReplace" data-gr-id="209"...
View ArticleConverting txt to CSV specific columns
Hello Everyone, I am new to PowerShell so I was hoping for someone to point me in the right direction and not necessarily give me an answer. I have a text file (list of names) I would like to export...
View ArticleWhere is the good ringtone?
I'm wondering where I can find the best ringtone for my phone, please help me
View ArticleMailbox folder permission
This permission only applies to the Inbox folders. How to apply the same permission to all the sub folders in a mailbox?Set-MailboxFolderPermission -Identity "Shared Mailboxname\inbox" -User...
View Article