How to set permissions ?
Hi, Can someone tell/explain to me how to set NTFS permissions for folders in this particular order: Example: \\alien.net.pl\users\profiles\$UserName 0. Set my Admin account as a new "Owner" 1. Set my...
View Articleoutput format trouble
I just can't seem to grasp how to create a report from the data that I collect. I want a .csv file, my data in two collumns. I collect my data putting it into an array and when I'm done I output it...
View ArticleGet-EventLog errors when running in a domain environment
I found this script on this site and it works well when I run it locally but when I run it in a domain environment I this error. Tried everthing I found on this site and others to no avail... I have...
View ArticleScript for get "lastLogon Timestamp" for specific OU and export to csv file
Hi folks. I'm trying to make a script for query all the users from specific OU in my domain and get the last "lastLogon Timestamp" from each user , and export the result to a csv file...
View ArticleNecesito descargar Windows PowerShell para un servidor con SO windows xp 2003
Si alguien sabe de donde descargar esta por favor ayudarme se los voy agradecer muchohebersipac
View ArticleIssue in reading a CSV file
Hi All, I've written a script as below to read contents of a text file into CSV and do some processing. $servers = Import-Csv "H:\Servers.txt" $servers foreach ($entry in $servers) { $ip =...
View ArticleWcf service consumption by PowerShell New-WebServiceProxy
I am developing a WCF service which I want to consume in PowerShell. Earlier I was using wsHttpBinding for the wcf service configuration. I tried to use following statement in PowerShell. $wcf =...
View ArticlePowerShell Email Alert for Failed Task
Hello All, I need some help with PowerShell. I have 0 experience with it so I am coming here for advice. I have a task scheduled on a Windows 2008 R2 server. It is a batch file that uses the net start...
View ArticleStrange error with $env:HOMEDRIVE
Hi there, I'm trying to copy a file somewhere into my HOMEDRIVE, but there seems to be a strange error. I defined it like that: $u=$env:HOMEDRIVE But if I do want to put something in there, it tells me...
View ArticleModify Output and pipe to user selection
Hi there, I searched the internet for quite some time but I'm stuck. I'd like to dirlist a directory, modify the output and have the user to select an item and assign it to a variable. So basically:...
View ArticleTrying to install (activate) IIS 7.5 for Win7 with Powershell.
Hi there, I'm trying to install (actually activate) the IIS 7.5 for my Win7 machine, through PowerShell. I found the commands for CMD but don't know how I could actually transform this into PowerShell...
View ArticlePowershell v3 and import-module .ps1
Hi All, i again need your help basically, with powershell 2, when we use import-module .\functions.ps1 and use get-module, the exported commands are empty however, if i change the .ps1 to .psm1 the...
View ArticleJoin different tables in Powershell
Hi! I am trying to get some information in two different WMI-tables. Win32_ComputerSystem and win32_PhyscialMemory and i would like to output Computername, Model and Amount of memory. This is the best...
View ArticleGet-Help Output
Hello, I have a questions regarding Get-Help output for my script. When I run Get-Help against my script I notice that the output for "Name" and "Synatx" shows the full path to where the script is...
View ArticleProblem with script that gets directory from ftp server
In the following script the main part that gets the directory (I got this code from the web) works but I can't seem to do anything with the string it returns. The directory is retrieved as a single...
View ArticleCreate multiple users form a CSv file and then add those users to multiple...
Hi guys, I'm a little stumped. I'm trying to write a script which creates a list of users form a CSV file and then also adds them to a list of groups which is also store din the CSV file. so far I have...
View ArticlePulling list of SQL servers into a script instead of a pre-defined list.
I would like to modify the following script (created Kyle Neier), found at: http://www.sqlservercentral.com/blogs/kyle-neier/2012/02/03/verifying-last-successful-checkdb-with-powershell-and-smo-sorta/...
View ArticlePipeline Function to Highlight
Hi, I would like to write a pipeline function to highlight objects for a certain condition, Is there a way I can do this - Basically I like to implement Highlight-Object which can take a script block...
View ArticleWorking with files, who's paths are too long
Is there any way of getting around the dreaded error Get-ChildItem : The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the...
View ArticleScript for if day = jan 01 run c:\data\Jan01.jpg
Hello... Does anyone have a script that will check the date and if it is that date, load a .jpg file. So if the date is Jan 01, run jan01.jpg, if the date is Jan 02, run jan02.jpg, etc Thanks, Tom......
View Article