Run a Dos command in Powershell
Hi,It seems like an easy question but it appears there are lots of ways to do this. I've been trying to run some dos commands to run NTBackup using start-process and arguments but the arguments are...
View ArticleRunning NTbackup with Start-process
Hi, I have some modified code but and getting the following error:Start-Process : Cannot validate argument on parameter 'ArgumentList'. The argument is null, empty, or an element of the argument...
View Article.bat not working in windows2008R2 scheduled tasks
Hi All,I have created .bat file to call .ps1 in scheduled tasks ,if I run file from folder it working ok but in scheduled it is not working content of .bat file is given below :D:>cd Script...
View ArticleWindows Command to get FW version of NIC card
Hi,I am trying to find out the FW version of my NIC card in windows PS. But, could not get any solution yet. However, in Linux I get it from "ethtool -i". Is there a similar tool or any other way....
View ArticleRegex for sorting out hostname using powershell
Hello Experts,I am in a situation where I need to sort out the host name from a txt file. The txt file contains lot of html syntax and FQDN, Host Name Etc. I just need to sort out the HostName in a...
View ArticleIs there a way to get command history to persist from one PowerShell.exe...
Is there a way to get command history to persist from one PowerShell.exe session to the next session?
View ArticleService acccount permission to remote powershell to dns server on windows...
Our Remote Management server with Windows Server 2012, needs to read and write toDNS on Windows Server 2012(with DNS & AD Roles) using PowerShell.Our Remote Management server runs PowerShell only...
View ArticleFormat list Error & Modification
Hello Everyone,kindly assist with this two questions;I have a power shell script that creates a user in the AD and exchange but at the end i want it to display the details of the created user. it works...
View ArticleCall a function in a new PS window and passing parameters to it.
I am trying to call a function that adds an outlook calendar event; however, I have to call the function using different creds. so, I was trying this:$daystodeletebackup = 30 $date =...
View ArticleHow to allow non-admins to run IPAM powershell cmdlets
On the IPAM Server Cmdlets in Windows PowerShell page in the Technet library it says, "The IPAM module supports the Windows PowerShell configuration file namedMicrosoft.IPAM to allow non-local...
View ArticleGetting verbose loggin from Powershell command when it is run from c#?
Hi,I made a code to run powershell command from C# to collect list of mailboxes from office 365.The command works fine to collect the get-mailbox.I want to write verbose logging to a text file when the...
View ArticleRouge Admin...
PowerShellers...We've recently discovered one of our ex-Domain Admins has went in and explicitly granted himself "Full Control" to certain high-level users. We have thousands of users in our domain,...
View ArticleRemove Network Bindings with Powershell?
I have been experimenting with a way to get Powershell to remove network bindings on a group of remote computers, instead of having to use NVSPBIND. I have the following:Get-WmiObject -Query "select *...
View ArticleInventory and after delete specific computer certificates
Hi,I´m trying to inventory certificates from around a 1000 computers. Afterwards I need to delete a certificate which is enrolled from a specific CA.How would you run the below, this works good locally...
View ArticleFitler output of html source then send alert
I have a website that reports the temperature for my server room. I am trying to build a script to scan the website and alert me if temperature is over 80 deg F. I figure out how to get the source code...
View ArticleYet one more attempt at automate licensing of Exchange
I've been trying to automate the licensing of Exchange 365 and Lync for the benefit of our sub-admins who aren't global admins. Normally I manually run a script like:$License =New-MsolLicenseOptions...
View ArticleWindows Remote Management service does not install when KB968930 is installed
I have a Windows XP machine that has KB968930 installed, but there is no Windows Remote Management service listed in the services control panel. It was originally installed via WSUS, but I have also...
View ArticleRegister Winscp assembly for SFTP upload
Hi, I am using WinSCP for an upload operation from powershell. I believe, to use the WinSCP assembly I have to register it in the system. So I copied Winscp.dll to C:\ and running the following command...
View ArticleAccessing ACS through powershell
Hey i was wondering was it possible to connect to acs through powershell and create identity providers,relying party trust,rule groups and other features using powershell cmdlets .I have seen some...
View ArticleSet-WSManQuickConfig - configuring a domain for Powershell Remoting
I am working with Server 2008 R2 / Windows 7 in a domain environment. Each computer has 2 physical NIC's. NIC 1 is connected to the domain, NIC 2 is connected to a test network that does not have...
View Article