Jump to content

Search the Community

Showing results for tags 'persistent'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • General
    • Announcements and Site News
    • Administration
  • AutoIt v3
    • AutoIt Help and Support
    • AutoIt Technical Discussion
    • AutoIt Example Scripts
  • Scripting and Development
    • Developer General Discussion
    • Language Specific Discussion
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Categories

  • AutoIt Team
    • Beta
    • MVP
  • AutoIt
    • Automation
    • Databases and web connections
    • Data compression
    • Encryption and hash
    • Games
    • GUI Additions
    • Hardware
    • Information gathering
    • Internet protocol suite
    • Maths
    • Media
    • PDF
    • Security
    • Social Media and other Website API
    • Windows
  • Scripting and Development
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Categories

  • Forum FAQ
  • AutoIt

Calendars

  • Community Calendar

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Member Title


Location


WWW


Interests

Found 1 result

  1. Hi there, I have been racking my brain about how to get persitent drives to delete with a login script. My scenario is that Say a user is added to a network drive and its mapped persistently. If that user is moved out of that AD security group i want a piece of code to delete and remove the previously mapped persistent drive. I cant seem to get the sequence right for removing the drive, and thats what i need help with. Heres my code: #include <AD\AD.au3> func mapdrives() _AD_Open() if _AD_IsMemberOf("Security Group") Then MapDrive() EndIf _AD_Close() EndFunc ;map drive functions Func MapDrive() DriveMapDel("Q:") DriveMapAdd("Q:","\\server\mapdrive",$DMA_PERSISTENT) EndFunc Do i need to add in a different else statement for drivemapdel to clear off the old persistent drive?
×
×
  • Create New...