Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources: Active Threads
Browsing all 8411 articles
Browse latest View live

Sharing Credentials Securely with other users for PoSh scripts

I've definitely come by this before on the internet but I can't for the life of me find what I found before... Don Jones has mentioned in one of his workshop videos the ability to write a tool, give it...

View Article


Trimming\Split a column in a CSV file

HI,I have a CSV in the following format:ComputerName,DatabaseName,CreationDateserver_1,master,08/04/2003 09:13:36I need this to output like...

View Article


Top 10 Active Directory Tasks Solved with PowerShell

Managing Active Directory (AD) with Windows PowerShell is easier than you think -- and I want to prove it to you. Many IT pros think that they must become scripting experts whenever anyone mentions...

View Article

Can PowerShell edit SQL trace (.trc) files?

I need to edit .trc files to remove any server name, ip, mac information.  I am not looking to convert the trace to another format, as another application needs to read this.  Can this be done in PS?...

View Article

Mimes

I am so used to Powershell being able to do almost everything.  So I am wondering if powershell can read the mime headers.  We have files literally over a million where the files are either rtf, pdf or...

View Article


Set-ADUser script help

Hi New to powershell and scripting but have been learning as I go and now have task to perform at work to update AD info for all users. Is working on test box as I'd hoped but want to neaten it up in...

View Article

Get-Process results.

Hi, I'm new to powershell and working myself through the first pages of the course.I have a question concerning the returned result of Get-Process.Get-Process | out-file Process.txtThis list of...

View Article

Search for AD Object in Different Child Domain forest With ActiveDirectory...

HelloI am Working With ActiveDirectory PowerShell ModuleIn A forest there are few Child DomainsI am in Domain A (My Workstation , My User)when I am Searching (For Example Get-ADuser)i gets results form...

View Article


How to use PowerShell to check for SLAT (Second Level Address Translation)...

I don’t know if you know this but if your going to try and use Hyper-V on Windows 8 your processor must support SLAT (Second Level Address Translation). Many of the Intel i7 processors do, but not all...

View Article


Problems with Powertips of the day

Hello,some month ago I have registered my emailaddress for the daily powertip. It worked fine until end of May. Now when I try to register my address again, nothing happens.Then I tried to use the...

View Article

Logfile check timestamp

I am trying to grab timestamps from a logfile to check if the process writing to the file is active and updating the file.The file looks something like this and a timestamp is being generated in the...

View Article

PSTs changed the after yesterda

Hello Guys,I'm stuck with a problem... I want to copy the PSTs which lastWriteTime is bigger than yesterday. So the PST in which something changed in the last day.I thought this line of code would get...

View Article

Parsing log file from an appliance

I have exported the logs from an SMTP appliance to csv.  Unfortunately, the format does not follow the standard criteria of a csv file.  As a result, opening in Excel is useless.  Using import-csv is...

View Article


How to create a library from a saved template

Salvete!  I just joined this forum so I could post here!  I have been two days trying to get this to work, and really need some help.First, I created a forms library, customized it, and saved it as a...

View Article

Approbation problem to add a domain user to local admin group

Hi,See the script and its error message returned below :cls $LoginUser=Read-Host"Entrez le nom de l'utilisateur"$UserLocation=Get-Aduser$LoginUser-Properties* |...

View Article


Path with variable

HelloCan someone please help me?#Example 1C:\Temp\MyFile.txt#Example 2$MyPath = "C:\Temp"$MyPath+'\MyFile.txt'While example 1 opens MyFile.txt, example 2 with variable just echos...

View Article

DB patching

HI all, How should I patch database using powerCli plz post script?

View Article


Need help converting PowerShell 3 script to PowerShell 2

I've just spent a week learning PowerShell and writing my first script.  I wrote it in PowerShell 3 and then tried to run it on a machine on our domain, only to realize that all the PC's have...

View Article

installing msi on remote machines with parameters

Hi, Below is the script i am using for installing the msi on remote computers, the msi is already on those computers, the script does not work when i substitute the values with variables  but when i...

View Article

Setting a maximum depth level on -recurse

Hello All,Is there a simply way to set a maximum number of levels -resurse will go to down a directory structure i.e. say 5 levels when doing something like thisget-childitem c:\ -filter "*.exe"...

View Article
Browsing all 8411 articles
Browse latest View live


Latest Images