not checking each server
clear-host $VerbosePreference = "continue" $bansifile= "desktop/result.html" $global:servers = "BAL-DC-01" , "BAL-NODE-01" , "BAL-NODE-02" IF (Test-Path $bansifile) { Remove-Item $bansifile } $tno =...
View ArticleLooking for help with PS script to insert into SQL.
The following PS script was written by somone at MS, to enable searching each database in a SQL server, from a list of servers, for SQL database roles that are nested. #*********************** # For...
View ArticleGet scheduled tasks from list of computers
I found script in MS gallery which will pull schedule tasks in computerparam( $computername = "localhost" ) try { $schedule = new-object -com("Schedule.Service") } catch { Write-Warning...
View Articlehow to protect a called program from powershell
hi all,i'm calling 4 processes which are all exe files and they keep on crashing frequently but if running it by clicking manually on the dekstop shortcut, it doesn't but this is manual inteference not...
View ArticleGet external IP for multiple servers
Hi, is there a way that i can find out the ip that a service is getting externally?I have a site www.mysite.com that can be load balances between 2 ips 1.1.1.12.2.2.2I am in my corporate network, so i...
View ArticleProfile Folders Check
Good MorningI was wondering if you could advise on the following I have noticed on some of our servers, users have got more than one profile folder, therefore possibly creating additional profile...
View ArticlePowershell GUI freezes when running PLINK
Hello,I have a Powershell GUI that asks the user to make a choice using a drop-down list.After that, the script calls another script which uses PLink to send commands to a firewall.However, the GUI...
View ArticleUsing webview control to display result.
Hi,I am trying to create a tool using winforms. I need some help understanding webview control. Is there any script/tool which is already created using webview control which i can have look to...
View ArticlePowershell error | The specified mailbox "Joe.Bloggs" isn't unique
In powershell when connected to my Office 365 service..When i try to get the mailbox statistics for our users it shows an error for those who have multiple mailboxes.This is the cmdlet that i have...
View ArticleEnter-PSSession and Oracle sqlplus
I try to use PowerShell for Oracle Server administration.I want to use Enter-PSSession to open session to Windows Server with Oracle.And execute sqlplus command to open session to oracle server.But it...
View ArticleDuplicate certificate template, edit and publish it
Hi, I'm trying to duplicate a certificate template using PowerShell, edit it and publish it. On my Active Directory Server, I added the Certificate Services role and ran the commnadcerttmpl.msc command...
View ArticlePowershell command
Hi, Is there a power shell command which generates report of the groups and individuals who have rights to a network shared folder? Also what is the command to listout the users in an AD group. Thanks.
View ArticleRemoving non existant users from NTFS folder permissions
I have NTFS folders showing members by their SID. Looks like these members are no longer employed and have been deleted, but the SID still shows. I want to script the removal of these. What I have...
View ArticleHow do I PS-Remote to all machines and copy files individually?
Hello,In the following code, via a Foreach, I create a PS session for a specific machine, then copy files from that specific machine. How do I create a PS session for all machines (eg. $Sessid =...
View ArticleLog all PS activity
Hellofor a learning-curve i want to log all my PS-activity on my workstation.What can i do to log all my PS-sessions to a specific drive on my network?Thx
View ArticlePipeline.Invoke() throws exception when build with .Net 4.5
Hi, I have created C# application for powershell hosting to run some of the Exchange cmdlets. Following is the code snippet used. Pipeline objPipe = space.CreatePipeline();...
View ArticleManage Local Group Policy remotely with powershell
All...I'm looking for some way to make a single change to a local group policy on about 100 servers, using powershell.Example, my Standard Group Policy was recently changed:"Specify intranet Microsoft...
View ArticleError running powershell workflow via workflow application - Could not find a...
Hello,I have rehosted workflow designer. My machine is running Windows 7 sp1 . I have downloaded and installed powershell 3.0 . I added the Powershell management activity and created a sample workflow...
View ArticleExport Microsoft Windows Backup to .txt
Hello,i am looking for a solution to export the Microsoft-Windows-Backup to network-drive with the .txt extension.When trying to doing get-eventlog the only types that are available are logs like...
View ArticleReport of audit settings
I will like to be able to produce a report of machines with audit settings using the invoke block to execute the auditpool.exe command and generate a report of settings not enable from a machine.I...
View Article