Monday, January 24, 2022

June 2017 TechNet Guru Competition is open! Read more on how you can win

June 2017 TechNet Guru Competition is open! Read more on how you can win

What is TechNet Guru Competition?

Each month the TechNet Wiki council organizes a contest of the best articles posted that month.
This is your chance to be announced as MICROSOFT TECHNOLOGY GURU OF THE MONTH!

One winner in each category will be selected each month for glory and adoration by the MSDN/TechNet Ninjas and community as a whole. Winners will be announced in dedicated blog post that will be published in Microsoft Wiki Ninjas blog, a tweet from the Wiki Ninjas Twitter account, links will be published at Microsoft TNWiki group on Facebook, and other acknowledgement from the community will follow.

Some of our biggest community voices and many MVPs have passed through these halls on their way to fame and fortune.

If you have already made a contribution in the forums or gallery or you published a nice blog, then you can simply convert it into a shared wiki article, reference the original post, and register the article for the TechNet Guru Competition. The articles must be written in June 2017 and must be in English. However, the original blog or forum content can be from before June.

Come and see who is making waves in all your favorite technologies.
Maybe it will be you!


Who can join the Competition?

Anyone who has basic knowledge and the desire to share the knowledge is welcome. Articles can appeal to beginners or discusse advanced topics. All you have to do is to add your article to TechNet Wiki from your own specialty category.


How can you win?

  1. Please copy/Write over your Microsoft technical solutions and revelations to TechNet Wiki.
  2. Add a link to your new article on THIS WIKI COMPETITION PAGE (so we know you've contributed)
  3. (Optional but recommended) Add a link to your article at the TechNet Wiki group on Facebook. The group is very active and people love to help, you can get feedback and even direct improvements in the article before the contest starts.

Do you have any question or want more information?

Feel free to ask any questions below, or Join us at the official Microsoft TechNet Wiki groups on facebook.
Read More about TechNet Guru Awards.

   

If you win, people will sing your praises online and your name will be raised as Guru of the Month

Thanks in advance!
-TechNet Wiki Council

 


signature   Ronen Ariely
 [Personal Site]    [Blog]    [Facebook]    [Linkedin]



  • Edited by pituachMVP Sunday, June 4, 2017 3:15 PM

June 2017 TechNet Guru Competition is open! Read more on how you can win

What is TechNet Guru Competition?

Each month the TechNet Wiki council organizes a contest of the best articles posted that month.
This is your chance to be announced as MICROSOFT TECHNOLOGY GURU OF THE MONTH!

One winner in each category will be selected each month for glory and adoration by the MSDN/TechNet Ninjas and community as a whole. Winners will be announced in dedicated blog post that will be published in Microsoft Wiki Ninjas blog, a tweet from the Wiki Ninjas Twitter account, links will be published at Microsoft TNWiki group on Facebook, and other acknowledgement from the community will follow.

Some of our biggest community voices and many MVPs have passed through these halls on their way to fame and fortune.

If you have already made a contribution in the forums or gallery or you published a nice blog, then you can simply convert it into a shared wiki article, reference the original post, and register the article for the TechNet Guru Competition. The articles must be written in June 2017 and must be in English. However, the original blog or forum content can be from before June.

Come and see who is making waves in all your favorite technologies.
Maybe it will be you!


Who can join the Competition?

Anyone who has basic knowledge and the desire to share the knowledge is welcome. Articles can appeal to beginners or discusse advanced topics. All you have to do is to add your article to TechNet Wiki from your own specialty category.


How can you win?

  1. Please copy/Write over your Microsoft technical solutions and revelations to TechNet Wiki.
  2. Add a link to your new article on THIS WIKI COMPETITION PAGE (so we know you've contributed)
  3. (Optional but recommended) Add a link to your article at the TechNet Wiki group on Facebook. The group is very active and people love to help, you can get feedback and even direct improvements in the article before the contest starts.

Do you have any question or want more information?

Feel free to ask any questions below, or Join us at the official Microsoft TechNet Wiki groups on facebook.
Read More about TechNet Guru Awards.

   

If you win, people will sing your praises online and your name will be raised as Guru of the Month

Thanks in advance!
-TechNet Wiki Council

 


signature   Ronen Ariely
 [Personal Site]    [Blog]    [Facebook]    [Linkedin]



  • Edited by pituachMVP Sunday, June 4, 2017 3:16 PM

June 2017 TechNet Guru Competition is open! Read more on how you can win

What is TechNet Guru Competition?

Each month the TechNet Wiki council organizes a contest of the best articles posted that month.
This is your chance to be announced as MICROSOFT TECHNOLOGY GURU OF THE MONTH!

One winner in each category will be selected each month for glory and adoration by the MSDN/TechNet Ninjas and community as a whole. Winners will be announced in dedicated blog post that will be published in Microsoft Wiki Ninjas blog, a tweet from the Wiki Ninjas Twitter account, links will be published at Microsoft TNWiki group on Facebook, and other acknowledgement from the community will follow.

Some of our biggest community voices and many MVPs have passed through these halls on their way to fame and fortune.

If you have already made a contribution in the forums or gallery or you published a nice blog, then you can simply convert it into a shared wiki article, reference the original post, and register the article for the TechNet Guru Competition. The articles must be written in June 2017 and must be in English. However, the original blog or forum content can be from before June.

Come and see who is making waves in all your favorite technologies.
Maybe it will be you!


Who can join the Competition?

Anyone who has basic knowledge and the desire to share the knowledge is welcome. Articles can appeal to beginners or discusse advanced topics. All you have to do is to add your article to TechNet Wiki from your own specialty category.


How can you win?

  1. Please copy/Write over your Microsoft technical solutions and revelations to TechNet Wiki.
  2. Add a link to your new article on THIS WIKI COMPETITION PAGE (so we know you've contributed)
  3. (Optional but recommended) Add a link to your article at the TechNet Wiki group on Facebook. The group is very active and people love to help, you can get feedback and even direct improvements in the article before the contest starts.

Do you have any question or want more information?

Feel free to ask any questions below, or Join us at the official Microsoft TechNet Wiki groups on facebook.
Read More about TechNet Guru Awards.

   

If you win, people will sing your praises online and your name will be raised as Guru of the Month

Thanks in advance!
-TechNet Wiki Council

 


signature   Ronen Ariely
 [Personal Site]    [Blog]    [Facebook]    [Linkedin]



  • Edited by pituachMVP Sunday, June 4, 2017 3:17 PM

June 2017 TechNet Guru Competition is open! Read more on how you can win

What is TechNet Guru Competition?

Each month the TechNet Wiki council organizes a contest of the best articles posted that month.
This is your chance to be announced as MICROSOFT TECHNOLOGY GURU OF THE MONTH!

One winner in each category will be selected each month for glory and adoration by the MSDN/TechNet Ninjas and community as a whole. Winners will be announced in dedicated blog post that will be published in Microsoft Wiki Ninjas blog, a tweet from the Wiki Ninjas Twitter account, links will be published at Microsoft TNWiki group on Facebook, and other acknowledgement from the community will follow.

Some of our biggest community voices and many MVPs have passed through these halls on their way to fame and fortune.

If you have already made a contribution in the forums or gallery or you published a nice blog, then you can simply convert it into a shared wiki article, reference the original post, and register the article for the TechNet Guru Competition. The articles must be written in June 2017 and must be in English. However, the original blog or forum content can be from before June.

Come and see who is making waves in all your favorite technologies.
Maybe it will be you!


Who can join the Competition?

Anyone who has basic knowledge and the desire to share the knowledge is welcome. Articles can appeal to beginners or discusse advanced topics. All you have to do is to add your article to TechNet Wiki from your own specialty category.


How can you win?

  1. Please copy/Write over your Microsoft technical solutions and revelations to TechNet Wiki.
  2. Add a link to your new article on THIS WIKI COMPETITION PAGE (so we know you've contributed)
  3. (Optional but recommended) Add a link to your article at the TechNet Wiki group on Facebook. The group is very active and people love to help, you can get feedback and even direct improvements in the article before the contest starts.

Do you have any question or want more information?

Feel free to ask any questions below, or Join us at the official Microsoft TechNet Wiki groups on facebook.
Read More about TechNet Guru Awards.

   

If you win, people will sing your praises online and your name will be raised as Guru of the Month

Thanks in advance!
-TechNet Wiki Council

 


signature   Ronen Ariely
 [Personal Site]    [Blog]    [Facebook]    [Linkedin]



  • Edited by pituachMVP Sunday, June 4, 2017 3:17 PM

June 2017 TechNet Guru Competition is open! Read more on how you can win

What is TechNet Guru Competition?

Each month the TechNet Wiki council organizes a contest of the best articles posted that month.
This is your chance to be announced as MICROSOFT TECHNOLOGY GURU OF THE MONTH!

One winner in each category will be selected each month for glory and adoration by the MSDN/TechNet Ninjas and community as a whole. Winners will be announced in dedicated blog post that will be published in Microsoft Wiki Ninjas blog, a tweet from the Wiki Ninjas Twitter account, links will be published at Microsoft TNWiki group on Facebook, and other acknowledgement from the community will follow.

Some of our biggest community voices and many MVPs have passed through these halls on their way to fame and fortune.

If you have already made a contribution in the forums or gallery or you published a nice blog, then you can simply convert it into a shared wiki article, reference the original post, and register the article for the TechNet Guru Competition. The articles must be written in June 2017 and must be in English. However, the original blog or forum content can be from before June.

Come and see who is making waves in all your favorite technologies.
Maybe it will be you!


Who can join the Competition?

Anyone who has basic knowledge and the desire to share the knowledge is welcome. Articles can appeal to beginners or discusse advanced topics. All you have to do is to add your article to TechNet Wiki from your own specialty category.


How can you win?

  1. Please copy/Write over your Microsoft technical solutions and revelations to TechNet Wiki.
  2. Add a link to your new article on THIS WIKI COMPETITION PAGE (so we know you've contributed)
  3. (Optional but recommended) Add a link to your article at the TechNet Wiki group on Facebook. The group is very active and people love to help, you can get feedback and even direct improvements in the article before the contest starts.

Do you have any question or want more information?

Feel free to ask any questions below, or Join us at the official Microsoft TechNet Wiki groups on facebook.
Read More about TechNet Guru Awards.

   

If you win, people will sing your praises online and your name will be raised as Guru of the Month

Thanks in advance!
-TechNet Wiki Council

 


signature   Ronen Ariely
 [Personal Site]    [Blog]    [Facebook]    [Linkedin]



  • Edited by pituachMVP Sunday, June 4, 2017 3:18 PM

powershell scope variable

hello:

 I want to retrieve a variable $i in nested foreach in the name disk-$i, the problem is that i loose the value of $i on disk-$i,how can i preserve this variable for example

foreach ($i in (1..$n)){
get-item folder-$i
get-job | foreach {set-disk disk-$i}
...
}


Reply:

Unfortunately you code does not make mush sense. What are you trying to do?

foreach ($i in (1 .. $n)) {  	Write-Host $i  	get-item "folder-$i" # ??????  	get-job |   		ForEach-Object {  			set-disk -Number $i   		}  }  

The Get-Job loop makes no sense.


\_(ツ)_/


------------------------------------
Reply:

hello it was just an example here is : i loose the variable value $i on write-host "folder name folder-$i"

foreach ($i in (1..$n)) {
Copy-Item -Path $source\folder -Destination $detin\folder-$i -Recurse

(Get-Content -Path $source\$folder-$i\Drives\script.ps1) | ForEach-Object {

write-host "folder name folder-$i"

$_ -Replace "folder", "folder-$i"} | out-file list.txt

thank you


------------------------------------
Reply:

Works fine for me:

foreach ($i in (1 .. 10)) {  	#Write-Host $i  	1..3 | ForEach-Object {  			Write-Host $i  			#set-disk -Number $i   		}  }  


\_(ツ)_/


------------------------------------
Reply:

hello

i test your code and it work, the logic of scope variable is respected, why i loose my values on sales-$i

foreach ($i in (1..$n)) {
Copy-Item -Path $source -Destination $dest-$i -Recurse
Get-Content -Path $dest-$i\file.txt | ForEach-Object {$_ -Replace "sales", "sales-$i"} | out-file sales.txt

thank you


------------------------------------
Reply:

You are not saving them anywhere.

$I = 999  Get-Content -Path $dest-$i\file.txt |   	ForEach-Object {  		$_ -Replace "sales", "sales-$i"   	}


\_(ツ)_/


  • Edited by jrv Saturday, June 3, 2017 7:26 PM

------------------------------------
Reply:
thank you

------------------------------------

windows installer service

Hi

I have this frustrating error which prevents me from installing Windows Installer Service. I wanted to install Microsoft .Net framework 4.6 for Corel Graphic Suite X8 but then I had this error saying:

"Setup cannot run, because the Windows Installer Service is not available on this computer."

So I tried Googling for an answer and I tried command prompt (using run as administrator) "net start MCIServer" but It said:

"The service name is invalid".

I then opened the services window and I didn't find Windows Installer so I thought I should download it. I downloaded it from Microsoft website but again I had this error "The requested operation requires elevation".

I'm so tired of these errors and I've had a frustrating day and this is killing me at the moment.

Thank you.


Reply:

"The Windows Installer Service Could Not Be Accessed" error when you try to install a program in Windows 7 or Windows Vista

See if the suggestions at the above link help.


Please remember to click "Mark as Answer" on the post that helps you, and to click "Unmark as Answer" if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. "


------------------------------------

New career paths

Hallo out there,

I´m on the printing market for over a decade now and considering to move to the pure IT, i mean that because I already assume some roles in the IT department as well like installing and troubleshooting file sharing and email related stuff, ip conectivity and cabling. is the MVA and its certificates on its own enough to move on to lets say sytem administration or helpdesk roles? By the way, i´m a copier tech.

i would really apreciate some points of view.

Thanx


Reply:
You have asked in the wrong forum. This forum is for questions and discussions about the TechNet Wiki. I will move this question to a more appropriate forum. The best I can find is one dealing with training and certification.

Richard Mueller - MVP Enterprise Mobility (Identity and Access)


------------------------------------

Just FYI, new blog post published today, "New DCB and vRSS Networking Docs for Windows Server 2016"

New blog post published today, "New DCB and vRSS Networking Docs for Windows Server 2016" at https://aka.ms/dcb-vrss

Thanks -


James McIllece

New blog post published today, "New DCB and vRSS Networking Docs for Windows Server 2016"

Just FYI, new blog post published today, "New DCB and vRSS Networking Docs for Windows Server 2016" at https://aka.ms/dcb-vrss

Thanks -


James McIllece

SQL Server 2012 Monitoring

Hi,

I need to know what all access is required to monitor SQL Server 2012.

Thanks,



Reply:

You can get a list for that by searching MSDN: https://docs.microsoft.com/en-us/sql/relational-databases/system-dynamic-management-views/system-dynamic-management-views

VIEW SERVER STATE and VIEW DATABASE STATE are usually enough to get the necessary info. But without knowing more about what you want to monitor it will be hard to give specific permissions. I would suggest you try monitoring with a login that has no permissions and <g class="gr_ gr_272 gr-alert gr_gramm gr_inline_cards gr_run_anim Grammar multiReplace" data-gr-id="272" id="272">adjust</g> upwards until you are able to monitor without any errors.


------------------------------------
Reply:

If users just need to view Activity Monitor in SSMS, grant their SQL login account 'VIEW SERVER STATE' at the instance level.

Grant Server Permissions (Transact-SQL)

Hope that helps,


Phil Streiff, MCDBA, MCITP, MCSA

  • Edited by philfactor Friday, June 2, 2017 7:59 PM

------------------------------------

Network and Sharing Center not accessible after deployment

I am having a couple of issues that I am hoping someone can help me out with. I have used MDT for a while and typically don't have any major issues that I can't eventually weed out, but am stuck on this one. Deploying Windows 10x64 1607. According to the wizard and BDD.log, there are no issues, but upon closer examination, I notice that several scripts, (run as applications) I have in my TS didn't do anything they were supposed to, even though the BDD.log recognized them and said they completed successfully. Also, I see that I am unable to open "Network and Sharing Center". It sits there,,,waiting,,, with the annoying spinning circle. I realize that there could be something wrong with my image, but no there were no errors when ran sysprep and capture. Just wondering if anyone else has run into similar problems? Thanks!

Pwershell script to login to a server

I'm very new to this scripting world. I want to write a powershell script to login to a windows server of same domain and restart a windows service.

Please guide.

  • Changed type Bill_Stewart Friday, July 7, 2017 4:12 PM
  • Moved by Bill_Stewart Friday, July 7, 2017 4:12 PM This is not "scripts on demand"

Reply:
Get-Help Invoke-Command

------------------------------------
Reply:

This might not be a trivial request. Does the service have any dependencies on other services? Do any other services depend on the service? What research have you done, what have you tried so far, and with what results?


-- Bill Stewart [Bill_Stewart]


------------------------------------
Reply:

Hi Bill.

The service don't depend on any other service. Whenever an applicaiton's process goes down we need to run the service to restart the processes. So I want to automate whole this set. And avoid the manual login every time followed by service restart.

So I thought writing a script to login to a remote application server and restarting the service.


------------------------------------
Reply:

Get-Service servicename -computer remotepc | Start-Service


\_(ツ)_/


------------------------------------

Need help getting script to detect the subnet it is on and ping specific devices from a master list based on subnet

I have a script that will ping a list of devices. What I am trying to figure out is how to have the script detect the subnet it is on and then select those devices from the master list based on subnet and spit out a CSV file with ping results and device status based on the current subnet.


  • Edited by Natedgreat Thursday, June 1, 2017 9:18 PM
  • Changed type Bill_Stewart Friday, July 7, 2017 7:02 PM
  • Moved by Bill_Stewart Friday, July 7, 2017 7:02 PM Unanswerable drive-by question

Reply:

So what's your question?


-- Bill Stewart [Bill_Stewart]


------------------------------------
Reply:

To detect subnet you need the device address and its subnet mask.

Posting all of that forms code has nothing to do with subnet allocation.  It doesn't help.

Please post only the piece of code you are using to detect subnet.


\_(ツ)_/


------------------------------------
Reply:
How can I get the script to identify the subnet it is on and then ping devices from a master list based on that subnet?

------------------------------------
Reply:
I do not know how to get it to do that so I have no code to enter that would attempt it. Thus the point of my question.
  • Edited by Natedgreat Thursday, June 1, 2017 9:19 PM

------------------------------------
Reply:

This will get you the subnet ID using the mask.

PS>$ip = [ipaddress]'10.0.0.20'  PS>$mask = [ipaddress]'255.255.255.0'  PS>[ipaddress]($ip.Address -band $mask.address).IPAddressToString  PS>([ipaddress]($ip.Address -band $mask.address)).IPAddressToString  10.0.0.0


\_(ツ)_/


------------------------------------
Reply:
How can I get the script to identify the subnet it is on

A script isn't "on" a subnet (by this I assume you mean a network ID), but a computer is. Here's one way for a script to determine the current computer's network ID:


Get-WmiObject Win32_NetworkAdapterConfiguration -Filter "IPEnabled=true" |   Select-Object `   @{   Name="ID"   Expression={([IPAddress] (([IPAddress] $_.IPAddress[0]).Address -band ([IPAddress] $_.IPSubnet[0]).Address)).IPAddressToString}   }  


-- Bill Stewart [Bill_Stewart]




------------------------------------
Reply:

Assuming a single NIC:

$nic = Get-WmiObject Win32_NetworkAdapterConfiguration -Filter 'IpEnables=True'  [ipaddress]$ipaddr = $nic.IPAddress[0]  [ipaddress]$ipsubnet = $nic.IPSubnet[0]  ([ipaddress]($ip.Address -band $ipsubnet.address)).IPAddressToString  


\_(ツ)_/


------------------------------------
Reply:

The following also gives you the mask length:

$nic = Get-WmiObject Win32_NetworkAdapterConfiguration -Filter 'IpEnables=True' [ipaddress]$ipaddr = $nic.IPAddress[0] [ipaddress]$ipsubnet = $nic.IPSubnet[0] ([ipaddress]($ip.Address -band $ipsubnet.address)).IPAddressToString # mask length [convert]::ToString($ipsubnet.Address, 2).Length
# number of hosts
[convert]::ToString($ipsubnet.Address, 2).Length - 2
# start by adding to net address from 1.
1..$numhosts | %{$netaddress + $_ }


\_(ツ)_/



  • Edited by jrv Thursday, June 1, 2017 9:52 PM

------------------------------------

add prompt for user id and password

hi, out IT support manager wants our frontline support staff to run this little script to help troubleshoot end user issues. where can we add a prompt for userid and password

 sub shell(cmd)
    ' Run a command as if you were running from the command line
    dim objShell
    Set objShell = WScript.CreateObject( "WScript.Shell" )
    objShell.Run(cmd)
    Set objShell = Nothing
end sub

shell "resmon.exe"
  • Changed type Bill_Stewart Friday, July 7, 2017 7:01 PM
  • Moved by Bill_Stewart Friday, July 7, 2017 7:01 PM Unanswerable drive-by question

Reply:
Why do you need the script? Just run resmon.exe directly.

-- Bill Stewart [Bill_Stewart]


------------------------------------
Reply:

our support staff are using landesk to take over a client workstation which is logged in as a normal user, so they have no access to run resmon, which is locked down for admins only.

There are times that processes will conflict with our main business application from running. Lync has been the latest one. 

 If Lync is running it will block our business app sometimes. Ending task on lync and the hung business app processes lets the program start normally. Without being able to do that, the user needs to reboot and hope it does not happen again


------------------------------------
Reply:

Asking for a username and password in a script doesn't seem to have anything to do with your scenario.

Try to describe in plain language what the problem is. Don't describe an attempted solution.


-- Bill Stewart [Bill_Stewart]


------------------------------------

product key question

Hello,

I was speaking with a rep yesterday directed me to this site. I am having issues matching up product key cards with my computers since the key card I installed is different from the one on the Microsoft site. I was give a service request id 1387181892.

Troubleshooting "the username or password is not valid" when trying to change the default content access account

So what can you do when you're trying to change the account used as the "default content access account" for the search service application (Central Admin > Manage Service Applicaitons > Search Service Application), every attempt fails with the error "the username or password is not valid," you know for a fact that the username and the password are both valid, and the verbose ULS logs offer no clues?

Trying to reset the account with the Set-SPEnterpriseSearchServiceApplication also gives a similar error: "Content source access username or password is not valid."

This turned out to be an excellent opportunity to do some DebugDiag exception logging (see https://blogs.msdn.microsoft.com/chaun/2013/11/19/steps-to-log-all-net-exceptions-to-a-log-file-with-debug-diag-2-0/) against the application pool used by Central Admin while we reproduced the problem.

The first log showed just one exception:

Type:     System.Runtime.InteropServices.COMException
Message:  The referenced account is currently locked out and may not be logged on to. 
Stack:    

  • Microsoft.Office.Server.Search.Administration.SearchApi.WriteAndReturnVersion(CodeToRun`1<Int32>, VoidCodeToRun, Int32)
  • DomainNeutralILStubClass.IL_STUB_CLRtoCOM(System.String, System.String)
    Microsoft.Office.Server.Search.Administration.SearchApi.WriteAndReturnVersion(CodeToRun`1<Int32>, VoidCodeToRun, Int32)
  • Microsoft.Office.Server.Search.Administration.Content.SetDefaultGatheringAccount(System.String, System.Security.SecureString)
  • Microsoft.Office.Server.Search.Internal.UI.ContentAccessAccount.OnClickOK(System.Object, System.EventArgs)

So the solution there is pretty obvious there. But attempts to change the account to other accounts that were not locked out gave us the same error in the browser but a different .net exception:

Type:     System.Runtime.InteropServices.COMException
Message: The profile for the user is a temporary profile.
Stack: 

  • DomainNeutralILStubClass.IL_STUB_CLRtoCOM(System.String, System.String)
  • Microsoft.Office.Server.Search.Administration.SearchApi.WriteAndReturnVersion(CodeToRun`1<Int32>, VoidCodeToRun, Int32)
  • Microsoft.Office.Server.Search.Administration.Content.SetDefaultGatheringAccount(System.String, System.Security.SecureString)
  • Microsoft.Office.Server.Search.Internal.UI.ContentAccessAccount.OnClickOK(System.Object, System.EventArgs)

What's the best way to deal with this type of profile related problem?



  • Edited by C. T. Haun Thursday, June 1, 2017 5:11 PM better

Reply:

My searching for "The profile for the user is a temporary profile" led us to a helpful webpage by Thomas Vuylsteke, a Microsoft PFE with a speciality in Active Directory. I am reproducing the entire page here just in case the original happens to disappear some day.

==========
http://setspn.blogspot.com/2012/09/temporary-profiles-and-iis-application.html
Temporary Profiles and IIS Application Pool Identities
Published on Monday, September 24, 2012 in IIS, Windows 2008, Windows 2008 R2  
I'm a bit stumbled that I've only come across this now. Recently I discovered that there are some cases where you can end up with your service account using a temporary profile. Typically this is the case where your service account has very limited privileges on a Server. Like application pool identities which run as a regular AD user, which I consider a best practice. I myself saw this in the context of the application pool identities in a SharePoint 2010 farm or with SQL Server Reporting Services 2008 R2.
The phenomena is also described at: Todd Carter: Give your Application Pool Accounts A Profile So this does not apply to all Application Pool identities! Only those running with "load profile=true".
In the Application event log you can find the following event:
Windows cannot find the local profile and is logging you on with a temporary profile. Changes you make to this profile will be lost when you log off.
How to fix it if you see those nasty "c:\users\TEMP" folders?
1.Stop the relevant application pools
2.Stop the IIS Admin Service (in services.msc)
3.See that the TEMP folders are gone in c:\users
4.Follow the next steps
How to make sure your accounts get a decent profile?
We will temporary add the service account to the local administrators group so they can create a profile. In fact all they need is the "logon locally" privilege. The second command will start a command prompt while loading a profile. This will ensure a proper profile is created.
1.net localgroup administrators CONTOSO\AppPoolAccount /add
2.runas /u:CONTOSO\AppPoolAccount /profile cmd
3.net localgroup administrators CONTOSO\AppPoolAccount /del
As a side note: if the TEMP folders are not disappearing, or you are still getting a temporary profile, you can try to properly cleanup the temporary profile:
1.Stop the application pools
2.Stop the IIS Admin Service
3.Using right-click properties on computer, choose advanced tab and then pick User Profiles. There you can properly delete them.
If you're still having troubles you might need to delete the TEMP folders manually AND cleanup the following registry location: HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList
Especially look if there aren't any keys with .bak appended to it.
==========


------------------------------------
Reply:
With Thomas' article in mind, I confirmed in INETMGR that our appPool for Central Admin does have Load User Profile set to TRUE. No great surprise there.
I then confirmed that we had several TEMP folders under c:\users\. We had, for example, c:\users\TEMP, c:\users\TEMP.{domainname}, and c:\users\TEMP.{domainname}.000. Our other search servers did not have these folders. 
Cleaning up old profiles through System Properties > Advanced Tab > Settings for User Profiles and then cleaning up more profiles in the registry at HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList as Thomas suggested solved our problem for us. We didn't have to do the other steps.

------------------------------------

Disable "Add a language" under region & language in windows 10 1607(Enterprise edition) for standard users

Dear Experts,

We are running a Windows 10 multilingual environment where we are supporting English + 5 additional OS languages (Russian, Spanish, Japanese, Chinese and French). These additional 5 OS languages are installed along with the SCCM Task sequence.

We have below 2 objectives (Issues) where would need your support:

1. We would like to completely disable "Add a language" option under region & language in windows 10 1607 for standard users so that no standard users are able to add any additional OS language on their own:

2. As said above we are providing English + 5 additional OS languages to all users. Our next objective is to allow user to remove any provided language which is working fine in 80% of the cases but in some cases while users try to remove the OS language they get a UAC prompt (Weird as it is not always the case). Also even if they get the UAC prompt, they can still Cancel the UAC prompt window and able to remove the OS language:


Reply:

Also to keep you updated that we have already tested the below GPO and it is not useful to disable this option:

http://www.computerstepbystep.com/hide-regional-and-language-options-administrative-options.html


------------------------------------

Problem with Office365 word

Hi Guys, 

I'm sitting on a terminal server and it's running Server 2012 R2 Standard

My problem is that, after I installed the new Office365 update to get the Icon funktion up under Illustration page. I can click on the Icon and choose that image file (.svg) I want to use, after I click on the image I get this fail! 

"There was an error occurred while importing this file. https://hubblecontent.osi.office.net/ContentSVC/Content/Download?provider=MicrosoftIcon&fileName=Disk.svg"

HOW DOES I FIXET IT ? 

Best regards


  • Edited by Tachodata Thursday, June 1, 2017 1:51 PM

Interactive Sorting by Value within multiple groups

This should be easy but I can't seem to figure it out. All I want to do is be able to sort ascending/descending by Value across 4 groups. Here is my design...

This is the report (note that all the child groups are toggled by their parents)...

Toggling the sort widget doesn't do anything. I tried sorting by group but that just sorts the group values by alpha.Would appreciate some help with this.

Thanks!


Darrell H Burns


Reply:

I still haven't gotten this solved. I tried sorting on the top-level group instead of the details row, but the results are baffling. Can anybody help?


Darrell H Burns


------------------------------------

No comments:

Post a Comment

Setup is Split Across Multiple CDs

Setup is Split Across Multiple CDs Lately I've seen a bunch of people hitting installation errors that have to do with the fact th...