Having some trouble with the syntax for compressing a folder and all its subfolders/files. The Win32_Directory WMI class has the method CompressEx which has a recursive parameter which is supposed to then compress all subfolders/files under the initial folder.
If I call
(Get-WmiObject -class...
So I think this should be pretty easily but its something I constantly trip over.
In this specific example, I am trying to compress a folder. The following code works fine:
(Get-WmiObject -class "Win32_Directory" -filter "name='C:\\Windows\\System32\\LogFiles'").Compress()
However for...
I have a stack of old hard drives at home from my PCs over the years. I always kept all the drives as I replaced them for obvious privacy issues plus I never knew if there would ever be anything on them that I may need in the future. I'd like to begin weeding them out so I can discard them...
Hey guys, been a long day. I'm having trouble wrapping my head around how to remove an ACE from a DACL if the Trustee matches a certain group. I'm opening a couple text files to read in a list of servers and a list of shares. Then I cycle through each targeted share on each server reading in...
Hey all, I got what I think should be a relatively simple script.
Const ADS_PROPERTY_CLEAR = 1
Const ADS_PROPERTY_DELETE = 4
strDN = InputBox("Enter the distinguishedName:","Clean up rfax: addresses")
Set objUser = GetObject("LDAP://" & strDN)
For Each strAddress In objUser.proxyAddresses...
I don't know if this is even possible as I can;t seem to find any information anywhere. We have an Offline Root CA that basically stays shut off. Every once in a while though we have to boot it up, open Certification Authority, right-click Revoked Certificates, click on All Tasks/Publish and...
I just installed my first Windows 2008 server using a MAK license key (we have 500 uses of this license). By default, the OS is set for auto activation after 3 days even though the grace period is set to 60 days. What I am assuming this means is that after 3 days, it is going to attempt to...
Hey all, I am using the excerpt of code pasted below to get a list of recurring appointments out of the Outlook Calendar. The script I use it in actually works very well but... is there a list somewhere for the properties I can pull off a calendar item? Like for example, in the code below, it...
Any one know if there is a way to grant permissions to view Open Files on a server for non-Admins, Server Operators? For example, I have a user who is not in the local Administrators, Power Users or Server Operators groups. But I need to allow this user the ability to remotely connect to the...
Hey all. What I'm trying to accomplish is a basic script that will query a server for 4 services. If the service is installed, it will query the service for certain properties. I'm basically doing something like:
Set objWMIService = GetObject("winmgmts:" &...
I have a lot of 7.6 and 8.0 primary and secondary servers set up in several different Antivirus server groups. Its like someone went nuts installing every server as a SAV server back when this was originally set up instead of just installing the client. We are looking to migrate all of the...
Backup Exec 9.1 Build 4691
I back up a bunch of remote servers to an autoloader and the job spans multiple tapes. I need to restore some files from the last tape used in the Full job. I put the tape in, I can Inventory it but I cannot Catalog or Restore anything from it. When I attempt...
Hi there. We are in the planning process for a Novell 5.1 migration to a Windows 2003 domain model. A little background first:
Two Novell NDS servers with one tree and two distinct branches in the structure, lets call them Academic and Staff. This network also as an Exchange 5.5 server...
Here is about the strangest problem I have ever seen. We have two legacy Novell servers using Zenworks 3.2. We're not upgrading anything with the Novell as this is going away in about a month.
We just reimaged some Windows XP SP2 Dell stations with Client 4.83 SP2 installed. On boot, these...
Found what is most likely a defect in Windows 2003's redirector.
If two programs that use GetPrivateProfileString or WritePrivateProfileString try to access the same file (INI file in this case) on a local share from the same server you are logged in to, it will totally lock up the server. It...
I have a trust configured on DOMAIN-A which is all Windows 2003 Domain Controllers running in native mode. DOMAIN-B is a mixed mode domain with one Windows 2000 and one Windows 2003 domain controller. When I try and establish the trust from DOMAIN-B, I get "Active Directory cannot verify the...
After migrating Exchnage 5.5 to Exchange 2003, we are experiencing an issue with new mail delivery refreshing in Outlook 2000/XP. If Outlook is open and positioned on the Inbox (or on an e-mail in the Inbox), new mail will never arrive. If you click off to a different folder, the new mail will...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.