Jump to content


  • 0
Markus

User Profile Change using Application

Question

Hi folks, i created a script which does some changes to network drives and users' document libraries for their profile.

The script works, but the detection rule seems not to run in the users context, which is plain stupid since it does not detect my changes and is a requirement!

I tried to use a simple detection vbscript:

 

wscript.sleep 1000

wscript.quit (0)

 

but it still fails. Any suggestions?

Share this post


Link to post
Share on other sites

4 answers to this question

Recommended Posts

  • 0

What does your detection rule look like? If the deployment type runs in user context you should have no problems with the detection rule to catch user settings. For pathes you have to use variables though, like %appdata% %userprofile%. For the registry the build in path for current user works just fine.

Share this post


Link to post
Share on other sites

  • 0

Well, you could still try a custom script detection with powershell

 

$file=[Environment]::GetEnvironmentVariable("USERPROFILE") + "\mypath\myfile"

if(Get-Item -Path $file -ErrorAction SilentlyContinue){

[Environment]::Exit(0)

}

Else {

[Environment]::Exit(1)

}

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...


×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.