How To: Set NTFS Permission Through a Script


Via de onderstaande regels kun je via een batchfile rechten toekennen aan een directory. In dit voorbeeld is dat C:Folder.

Regel 1. Voegt de groep Domain Admins toe en maakt deze owner van C:Folder. Ook verwijder deze regel alle overige permissions die al toegekend waren.

Regel2. voegt een groep toe moet Modify rechten.

Regel3. voegt een groep toe met Read en Execute rechten.

  1. cscript XCACLS.vbs “C:Folder” /g “domainDomain Admins“:F /F /T /O “Domain Admins”
  2. cscript XCACLS.vbs “C:Folder” /g domainDL_RES_Groupname_Modify:M /F /T /E
  3. cscript XCACLS.vbs “C:Folder” /g domainDL_RES_Groupname_read:X /F /T /E

De dikgedrukte parameters kun je terugvinden in het help bestand:

filename            [Required] If used alone, it Displays ACLs.
                    (Filename can be a filename, directory name or
                    wildcard characters and can include the entire
                    path. If path is missing, its assumed to be
                    under the current directory.
                    Notes:
                    – Put filename in quotes if it has spaces or
                    special characters such as &, $, #, etc.
                    – If Filename is a directory, all files and
                    sub directories under it will NOT be changed
                    unless the /F or /S is present.

/F                  [Used with Directory or Wildcard] This will change all
                    files under the inputed directory but will NOT
                    traverse sub directories unless /T is also present.
                    If filename is a directory, and /F is not used, no
                    files will be touched.

/S                  [Used with Directory or Wildcard] This will change all
                    sub folders under the inputed directory but will NOT
                    traverse sub directories unless /T is also present.
                    If filename is a directory, and /S is not used, no
                    sub directories will be touched.

/T                  [Used only with a Directory] Traverses each
                    subdirectory and makes the same changes.
                    This switch will traverse directories only if the
                    filename is a directory or is using wildcards.
/E                  Edit ACL instead of replacing it.

/O user             Change the Ownership to this user or group.

/L filename         Filename for Logging. This can include a path name
                    if the file isn’t under the current directory.
                    File will be appended to, or created if it doesn’t
                    exit. Must be Text file if it exists or error will occur.
                    If filename is obmitted the default name of XCACLS will
                    be used.

Meer info en de download vind je hier: KB825751

Microsoft: Well-known security identifiers in Windows operating systems


Het volgende document kan heel handig zijn bij het troubleshooten.

A security identifier (SID) is a unique value of variable length that is used to identify a security principal or security group in Windows operating systems. Well-known SIDs are a group of SIDs that identify generic users or generic groups. Their values remain constant across all operating systems.
This information is useful for troubleshooting issues involving security. It is also useful for potential display problems that may be seen in the ACL editor. A SID may be displayed in the ACL editor instead of the user or group name.

KB243330

VMware: New build of the ESX 3.5 iso


Ik kreeg vandaag een e-mail van VMware met de volgende boodschap.

Before upgrading to ESX Server 3.5 from ESX Server 3.0.1 or 3.0.2, please download the new build and
ensure the ESX Server 3.5 ISO or upgrade tarball to which you are upgrading has release date of 2/16/08
instead of 12/10/07.
Upgrades to ESX Server 3.5 with release date 12/10/07 from ESX Server 3.0.1 or 3.0.2 may require manual
RPM installation as described in KB 1003801.

Je kunt dus een nieuwe build downloaden van de ESX 3.5 iso. Deze vind je hier: http://www.vmware.com/download/vi/

Citrix: BackupPolicy.vbs


In een artikel van Wilco van Bragt kwam ik het script BackupPolicy.vbs tegen. Dit artikel verwijst naar een post op brianmadden.com hier staat het script ook als download.

De volgende details over script zijn vrijgegeven:

The backup script is pretty straightforward. It allows you to parse two (optional) parameters:

  • Logging detail level
  • XML file name the policy information is written to

The restore script has some more parameters, all of which are optional. For example, you can:

  • Specify the logging detail
  • Whether or not to apply the policy filter
  • Whether or not to overwrite a policy if it already exists
  • The name of the XML file that you’re restoring (from the backup script)
  • The policy name (if you only want to restore a subset of the policies in the XML file)

 

Nogmaals de link naar de download: VB-Script-to-Backup–Restore-CPS-policies

VMware: Undocumented Parameters for Advanced Features of HA


 

PeterB heeft op het VMUG een post gemaakt over de Advanced Features binnen HA.

    • das.failuredetectiontime Aantal miliseconden 60 seconden = 60000 Timeout tijd voor isolation response acties
    • das.isolationaddress IPAdress Adres dat de ESX server gebruikt om zijn HA agent een hartbeat te laten rondsturen
    • das.isolationaddress2 IPAdress Tweede adres dat de ESX server gebruiken kan om zijn HA agent een hartbeat te laten rondsturen
    • das.poweroffonisolation False or true Zorgt dat alle VM’s op de ESX server niet down gaan
    • das.vmMemoryMinMB Waarde Higher values will reserve more space for failovers.
    • das.vmCpuMinMHz Waarde Higher values will reserve more space for failovers.
    • das.defaultfailoverhost Hostname Eerste keuze voor een failover host

PeterB bedankt voor het posten!

Bron: http://www.vmug.nl/modules.php?name=Forums&file=viewtopic&p=13315#13315

VMX parameters


Sanbarrow heeft een lijst met VMX parameters op zijn site staan. Via deze (undocumented) parameters kun je misschien net dat gene voor elkaar krijgen wat anders niet lukt.

Let op! het gebruik van deze parameters is op goed geluk en worden niet ondersteund door VMware.

Advanced parameters

VMX-file parameters

only a small selection of this is commented yet – any help is welcome – contact me via forum-PMs or email – thanks Ulli
Thanks to Oliver for ESX-related parameters

http://sanbarrow.com/vmx/vmx-advanced.html