Getting AD computers remotely?
What I want to do is get a list of all the servers on our domain.So we have an Admin box that is running Windows 2k3. I've been told I can't get the activedirectory module for powershell to go on that...
View ArticleQuerying GetDnsServerSourceRecord.RecordData / CimInstance#Instance data in...
I'm trying to query the RecordData property of a zone I've retrieved using Get-DnsServerResourceRecord. If I query any of the other elements things work fine, so for instance I can run...
View ArticleEnter-PSsession does not work
Hello!I'm trying to connect to PS on a remote Windows Server 2012 from my Windows 7 client. Firewalls on both the server and the client are disabled.Here are my steps:1) I enabled "Remote management"...
View ArticleHow to sign standard Powershell modules ?
Hello,I'm working in an environment where ExecutionPolicy on all the servers is set to "AllSigned", I need to run scripts automatically that use cmdlets from some of the modules like ActiveDirectory...
View ArticleAn error occurred when loading the system Windows PowerShell Snap-Ins.
I have a wcf service. And I am running some cmdlets as belowRunspace runspace = RunspaceFactory.CreateRunspace(); // open it runspace.Open(); Pipeline pipeline = runspace.CreatePipeline();...
View Articlepower shell ..
hi team,we need a power shell screen shots and how to learning the sql server power shell...
View Articleabout add lots additional mailboxes
Hey guys,I have a problem now。My customer has to add many mailboxes to her outlook for work(just add,not profile logon),now,she can not open these additional mailboxes,even her personal mailbox can...
View ArticlePowerShell & Command Line Based EXE Results Not Displaying
So, I work for a university and we use Faronics DeepFreeze to maintain the state of our computers.I am upgrading our management process to leverage the remote capabilities of PowerShell. The problem...
View ArticlePowerShell to consume WCF service with multiple contracts
I have implmented two WCF services for managing two different types of resources. There are some APIs implemented to connect to these resources. Both WCF services are hosted as Windows Service.As there...
View ArticleHow to Get-EventLog for offline evtx files?
Dear all,We need to analysis the security event log (e.g. event ID 4720,4722,4725,4726,4662) for our production servers. However when I run the Get-EventLog I get follow error:Get-EventLog : Requested...
View ArticleDelete permissions on a folder.
Hello everyone, I need to delete all user and group permissions from a folder. Unfortunately Powershell doesn't want to accept my wildcard * to delete everyone. Is there a way to delete everyone's...
View ArticleInstall RDP CAL's and activate RDS Licensing Server 2012 using Powershell
Hi all,I am trying to figure out how to activate an RDS Licensing role and install CAL's on a Windows Server 2012 Standard box. I have created an RDS Deployment, and installed all the necessary roles,...
View ArticleExecute SOAP in Powershell
Hi Smart people,I need to execute a soap request using powershell, below is the website that the information is found and the...
View ArticleStart-Job with PowerCLI
The Get-VM here produces a list of ALL VM's and does not get just the 1. However, the $args[0].vmname above the get command produces the correct name I am looking for.I'm perplexed..Any ideas?# Do work...
View ArticleRead-Host and variables
I have a basic script to search our AD for inactive computers. I want a prompt to specify the search base, and so I tried to use Read-Host Like so:$WKS = 'OU=Workstations,DC=domain,DC=company,DC=com';...
View ArticleFunction returning values in powershell
Hello Experts , I am writing one powershell script which has 2 functions , Basically the functions query the WSUS Server information of each client sytem. I want to retun the value of each function...
View ArticlePowershell ISE vs. PowerGUI
Can anyone comment on the relative strengths/weaknesses of Powershell ISE vs. PowerGUI (from Dell/Quest). I've only worked with these for a short time. The most obvious strength of the ISE is that...
View ArticleN00b question: force script to continue after terminating error
So, I'm a total n00b with powershell and as anyone starting out with something unfamiliar, currently my "love" for PS can only be expressed in expletives.Anyway, having spent past 9 hours beating my...
View ArticlePowershell email-notifications
Hello everyone,This is the code I am using for sending mails from outlook to yahoo.It works perfectly,$OL = New-Object -ComObject outlook.application Start-Sleep 5 $mItem= $OL.CreateItem("olMailItem")...
View ArticleCreate a share folders on remote servers reading from csv file
Hi All, Today I am using the below script(got from this forum) to create a folder on remote server and then used new-share module to share it# Path to file share. $FileSrvPath =...
View Article