Link to home
Start Free TrialLog in
Avatar of Techie solution
Techie solution

asked on

Powershell

Hi All,

This is a compliance issue where we need to track each and every time the user has a logon/logoff, and know the date and time.

Can I have a script whaich can be deployed through appsense instead GPO.
Avatar of James Rankin
James Rankin
Flag of United Kingdom of Great Britain and Northern Ireland image

Avatar of Techie solution
Techie solution

ASKER

There is no ~Custom key , what should I do now
The custom key is just an area where you write the value. Create or change it as appropriate for your environment - create it with a group policy preference if necessary.
I dont want to include registry . I need to save the login and logoff user computername and date and time in one file.
Ok, just write the data to a file instead of to the registry using Out-File or similar cmdlet
Although that script I linked to does actually write out to a file when the user logs out
Created the powershell script , working for domain admins but not for domain users.
Please help.
Can you post the script you are using? Sounds like it is trying to write to HKLM or a restricted filesystem area
ASKER CERTIFIED SOLUTION
Avatar of Techie solution
Techie solution

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
The problem is the D ( dollar) share in your log file path is only accessible to administrators. Use a different share , you could simply share the d: drive again under a different share name and use that.
what do you mean i am unable to get you.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I wrote the code.