batch to deploy software help.
hi all,I need to deploy one software and I choose to use batch. after testing, it does not check prerequisetes and I have to install Microsoft Visual C++ 2008 Redistributable Package first: question...
View ArticleDeleting 2010 Exchange accounts, AD account and user folders!
G'day folks. I'm working through an idea to help speed things up at work. We've got a VB script that disables user accounts when they leave the company - that works all well and good, however, after...
View ArticleFinding Assemblies
I entered this at the Powershell (3.0) prompt:$myvar = [uint8]12PowerShell responded with an error message stating that the specified data type is not available. I figured that it was necessary to load...
View Articlesimple - check file, if found how old? if less than a specified hour email alert
Hello AllI'm new to PowerShell and have found a lot of information and examples in the forums but I'm stuck and need quick help.I need to check a shared drive for specific files - specific suffix...
View ArticlePowershell hash order inside a function
Hello everyone,I have a hashtable that i pass inside a functionthe hashtable is ordered .$hash2= [ordered]@{}the keys are date and are formatted like this : 25/05/2013this is the output of my $hash2...
View ArticleCheck file size and run batch file
Hi.I have the following script with which I check the file size and run a batch file depending on the size. My problem is that the file name will be different each time. There will be one file at a...
View ArticleUsing PowerShell to Move a Group of Computers
Hi All,I am new to PowerShell and have been asked to move a group of computers (that haven't been used in a while) to a different OU, and was hoping for some direction. My first thought was to export...
View ArticleTrack USB Key Usage
I am looking to track, statistically, when a USB key is inserted into a Windows 7 machine. I found a log file - Microsoft-Windows-DriverFrameworks-UserMode - which tracks just this information. I can...
View Articleremove/insert computers to excel
I've been working on a script that will fetch information from computers within a domain and also manage it to add new Rows into the excel sheets if the script has found a new computer within the...
View ArticleScript NTFS Permissions with Powershell Cmdlet Set-Acl
Hi,I´m trying to script a auto permission script with powershell, which reads foldernames, searches the appropriate group in Active Directory and writes NTFS permission on that directory.The Script...
View ArticleWMI filter for the group - the stations or users
Hello, I can not create a WMI filter group. Can you advise? Select * from Win32_GroupUser Where GroupComponent = "Win32_Group.Domain = 'domain', Name = 'test_skupina'" When testing Paesler WMI tester...
View ArticleVB Script to edit a frequently Updating file
Hi All,I have VB script which will update the first two letters of a file. This script is working fine but after updating the file, the file not getting updated automatically.This file is the log file...
View ArticleGet-WinEvent - Security
I've been trying to use eventcombmt to find some user logon attempts but the application crashes. Since there are no other alternatives I thought PowerShell would be my friend.I need to crawl the...
View ArticleAttribute Change via Powershell
Hey Everyone!I'm trying to write a small script for modifying an exchange attribute for about 20 users in a domain environment. I have created a CSV file which consists of:column 1 = usernamecolumn 2...
View ArticleUsing WUA to Scan for Updates Offline on remote systems
I am trying to use the Windows Update Agent API & check the list of patches applicable on the remote system offline. I have a script that pretty much does the job on the local system. Below is the...
View ArticleStrange issue executing remote comand.
Hi,I am having a very strange issue performing remote commands in some computers, from a vbs script.The remote machine has a vbs script in C:\Scripts called generatefile.vbs. That script makes some...
View ArticlePaging a Large Output from Get-Mailbox to smaller Subsets to execute a...
Currently I am working on an Office 365 project that the customer has over 45k Mailboxes created in the Cloud and the only way to bulk change anything is through PowerShell v2. When I try and do a...
View ArticleNeed - HTML report with CSS/JS script
Hello,I want to build a HTML report where I can get PowerShell properties output in html and each properties should Expand and Collapse by click or mouseover.I tried but no luck. No able to club...
View ArticlePowershell to query event log 1125 from multple computers in event viewer
I have this unique request I have list of like 70 servers. I want to know which server is having GP problem I know the event id1125 - The processing of Group Policy failed because of an internal...
View ArticleUsing WMI Permanent requires VBScript? (Automating NTFS permissions)
Hello,I'm relatively new to using WMI. It certainly seems powerful, but dizzyingly complex. I've got a script using FileSystemWatcher that monitors a folder and its children for files added by an...
View Article