Quantcast
Channel: Windows PowerShell forum
Browsing all 21975 articles
Browse latest View live

Powershell Get-Eventlog Problem

HelloTrying to do this command "Get-Eventlog -LogName 'DFS Replication' -InstanceId 4412 -Newest" however it will not work with the "InstanceId 4412" section of the code.  If I take "InstanceId 4412"...

View Article


Problem with AD access on Powershell 3.0

I'm trying to use some of the AD commands in powershell, and just started getting the following error:get-aduser : Unable to find a default server with Active Directory Web Services running. At line:1...

View Article


Capture emailadress for reuse in variable

Hi Guys!I might think some of you are able to help me out with this little problem I have when I try using PowerShell and PSSnapin for Exchange 2010.The problem I have occur when I want to change a...

View Article

beginner issue with "unexpected token" error

Hi, I am trying to write my first powershell script but am completely stumped and trawling google hasn't helped.I am writing (trying to write I should say) a script to look through a folder tree and...

View Article

remove multiple people from a single group in Active Directory

I am trying to remove multiple users from an Active Directory group.  I have a list of users by User ID (account ID).  And the group changes depending on what we need.  Is there a way to create a...

View Article


script to find service and start them

I need to find all the machine on the domain to see if computer browser and Remote registry is started or not. if not I need to start themhow can i do this with powershell?

View Article

Monitoring Event in Powershell

How to Monitor Specific Event ID's from Powershell.Im monitoring a specific event and I want to create a powershell script that will email to my department if that event id make an entry in the...

View Article

Powershell v3 Installation

Hi AllTo Install Powershell version 3 does the whole WMF need to be installed (is it dependant on the other bits) or can v3 of powershell be installed without the rest of the bits being installed...

View Article


Date comparison failing at the same times each day

I have a script that checks the last run time of a scheduled task on a windows 2012 server. If the last run time was before 35 minutes ago..... it sends me an email. Works great until 1:17AM and...

View Article


Eventlog to Excel problems

Hi all, I am new to Powershell so any help really appreciated.I am trying to enter some event log errors to a single excel cell. I have no control of the layout of the spreadsheet so I am tied to...

View Article

PowerShell: If string startswith a or b

Hey,I'm trying to see if a string startswith a or b or c or d or f or g.. yeah.. basically a-g. Is that possible using this method?$All = Get-ADGroupMember Groupname | select samaccountname Foreach...

View Article

NetworkLoadBalancingCluster module not working from .net code

Hello to everyone. I'm trying to call cmdlets from NetworkLoadBalancing from .net code but for some reason it does not work.Code snippet 1:InitialSesstionState iss =...

View Article

Powershell : need to copy files from one server to multiple

Hey Guys,Am a newbie to powershell & would be looking for you ppl to help me in finding solution to my problemi have a scenario wer i hav to copy set of files from one source server to multiple...

View Article


How to get page response time

Hi ,  How can I get the page response time in Sharepoint 2010 using powershell script?

View Article

Retrieve list of users that have messages larger than 25 MB in their mailboxes?

Is it possible to use Power Shell to search user mailboxes to see if they have any message (including attachments) that are larger than 25 MB?  Outlook has a feature to search for that.  However, we...

View Article


Active Directory : Copy members from groups to groups

Hi,I'm in charge of a massive work, and as a normal IT employee, I'd like to automatize it a little.In the company I work with, every computer has a related AD group where members are set. This is to...

View Article

Checker Server Connectivity

Is there a simple piece of code that will check if someone can connect to a server? I have a many lines that run commands against the server, but sometimes the server goes down so i want my script to...

View Article


Setting folder permission with Powershell

I have a PS script that creates a folder and then adds 2 folders inside it. The permissions are set on each folder after it is created. The permissions are being set properly but they don't show on the...

View Article

SkyDrive

Is it possible to store the profile.ps1 in SkyDrive, and having PowerShell syncing automatically to this profile in SkyDrive?

View Article

Last check for update in POwershell

Hello guys!Is where any cmdlets or any ways to get through WMI to get last check for update date? I know only about Get-Hotfix , where i can get last installed update, but lash update check can be made...

View Article
Browsing all 21975 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>