Help Creating Backup script
Hi. I'm very new to powershell scripting but for a project I'm working on i think powershell would be the best solution to automate our backups. I'm trying to create a script that will back up folders...
View ArticleTime validation
I have a log file where I get dates in following format in each line... I need to validate the date and see if they are between 5 PM to 9 AM. If it matches then I need to export the lines to another...
View ArticleUse PowerShell to Add New Managed Servers in Windows Server 2012
When I’m speaking with IT Pros about the great multi-server management enhancements in Windows Server 2012, I’m frequently asked about ways in which servers can be programmatically added to the new...
View ArticleCreating MultiUsers with PS
HELLO ALL! I'm new with all this staff and i know some basic functions.i want to know how can i write script for creating users. i mean that when i run the script the PC just ask me for the FirstName...
View ArticleConnect to SQL Compact Edition (CE) using PowerShell
Hello,I support an application that deploys an .sdf file. I would like to query/edit the contents of the file using PowerShell.I'll assume I'll need at least CE and the SQLPS module installed. I'm OK...
View ArticleScriptBlock?
I am very new to PS:), but I think out of all the languages I have dabled with, this will be the one for me. I have decided to learn PS as best I can. So far, so good, I have little programming...
View ArticleSQL Query results to PowerShell Array.
Hi,First time I've posted on here so hi. I'm pretty new to SQL so sorry if this looks a little naff.I'm trying to query two tables. One has a username, associated with an ID, the other has a list of...
View Articlegwmi win32_product error ONLY in win xp
Hi All,I am creating a script to collect some system information for multiple servers. As a part of it, I am collecting softwares installed in group of machines. I am taking the list of softwares...
View ArticleProblem displaying expirty date of SSL certificate and the work around I used.
Hello AllI came across the following today, so thought I would make a brief post. I created a script to check expiry dates of SSL certificates (nice an easy with PowerShell thanks the the cert:...
View ArticleMoving filders with a hyphen in name to parent folder with similar name
I am looking to write a script that will move existing folders with a "-" hyphen in the name into a parent folder with part of the same name.Example:I would like to move c:\12345-01 into c:\12345\ to...
View ArticleRedirect output of a script to a file
HelloI have a main script which calls other scripts and their functions. My main script is as...
View ArticleHow to make script run for anyone?
Hello, I have a working PS script. It will prompt the user for a computer name and the computer named that gets entered will then be moved to an "inactive OU" in AD. My issue is my script uses the...
View ArticleSoftware Installation with Powershell???
Hi all, Currently within my org., we use SCCM and VBscripts to install software packages. I am in the process of developping my own skills for various MS exams, but would like to take this (as in some...
View ArticlePowershell v3 + ODBC + PostgreSQL + INSERT query
Hi!I would like to send INSERT query to Postgre SQL. I've installed psqlODBC_x64 and configured System DSN ODBC Connection.My powershell v3 function for query like SELECT works...
View Articleimport-csv custom object
Hi experts.I have csv file with more than 100 servers it contans the servername,servertype,platformServerServerTypePlatformtest1terminalserverterminaltest2ttsuse I want to pull out the servers which...
View Articleview remote and locatin 32bit performance counter
i have third party 32 application installed win 2008 R2 64bit.. when I run below command to see counters I get an error saying cann't find any performance counter sets..Get-Counter -ListSet es1* |...
View ArticlePowershell system temperature
Hello, is it possible to get system temperature information with powershell ? Thanks
View ArticleDiscover Application by Versions other than?
I am building a script that will use the get-wmiobject cmdlet using the Win32_Product class. I am trying to do the following and getting stuck. I am trying to find for instance any Autodesk Inventor...
View ArticleGet File time stamp and calculate
Hi allEach computer in a specific area writes a log to the network once every 30 minutes. the log directory is the computer name and a single file called log.txt I am trying to get the time the folder...
View Article