Tuesday, January 25, 2022

New Windows Server 2016 Forums are Available!

New Windows Server 2016 Forums are Available!

As you know, the current forum mainly focus on questions about Windows Server 2016 Technical Preview. Now the new forums about Windows Server 2016 are available.

Windows Server 2016 General

Nano Server

Windows Server 2016 Essentials

If your question is not related to the technical preview version, we highly recommend you to post your questions in the above forums correspondingly. This is to avoid confusing others who are experiencing similar issues with their server versions. Microsoft will continue to provide technical support in both forums. Thanks for your understanding.

Best Regards,
Reken Liu


TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact tnmff@microsoft.com.


Welcome to Windows Server 2016 Forum

Windows Server 2016 general availability (GA) was marked on Oct 12, 2016. This forum focus on questions and discussions about Windows Server 2016 post release. If you are still working with a Windows Server 2016 technical preview version, please post your questions in the preview forum.


Here are the available Windows Server 2016 Forums

Windows Server Technical Preview

Windows Server 2016 General

Nano Server

Windows Server 2016 Essentials


Online Documentations for Windows Server 2016

Get Started with Windows Server 2016

What's New in Windows Server 2016

Compute in Windows Server 2016

Failover Clustering in Windows Server 2016

Identity and Access in Windows Server 2016

Management and Automation in Windows Server 2016

Networking in Windows Server 2016

Storage in Windows Server 2016

Security and Assurance in Windows Server 2016


The latest updates about Windows Server 2016 could also be found in the blog of Microsoft Windows Server Team.

Thanks,
Reken Liu

TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact tnmff@microsoft.com.



LYNC question

Hi All ,

Do you have any idea on LYNC : We have an users who are facing issue while sharing the screen "An Error Occured during the screen presentation" And this is happening when 3 or more participants are on the call

1) Do you have any idea how to enable client side logging ? & stored location.
2) Can we setup logging on the server?  without a LYNC monitoring server.

Reply:

Please find reply below.

1) Do you have any idea how to enable client side logging ? & stored location.

Image result for enable logging lync client

stored location is "C:\Users\CurrentUser\AppData\Local\Microsoft\Office\15.0\Lync\Tracing"

2) Can we setup logging on the server?  without a LYNC monitoring server.

no need for Monitor server you just ned to install debugging tools "https://www.microsoft.com/en-sa/download/details.aspx?id=35453

and then install it on Lync servers.


  • Edited by HamedAdel Tuesday, December 6, 2016 7:02 AM

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

I went through the client log there are lots of .dat & etl file ...So which one i have to refer we are facing issue while sharing screen share. With Below error .

 "An Error Occured during the screen presentation"

Any Document to trouble on above tool 


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

In client tracing folder, look for the current .uccapilog file. A new file will be generated every time the application starts and old file is renamed to .uccapilog.bak.

So this is what you do when you troubleshoot clients:

  • Exit client.
  • Start client
  • reproduce error
  • Exit client
  • Open .uccapilog with Snooper (part of Skype for Business debugging tools)

However your problem description indicates you should have a look at the RTCASMCU service on the frontends, is it running?? Any error in the eventlog for Lync server??

When 2 parties is having a desktop sharing session, this session is peer-to-peer, content go directly from one client to the other, but when a 3rd party is joining the session, a meeting is created and all content goes between client and server using the MCU resources on the frontend server. ASMCU is the MCU used for application sharing.

Also check if a firewall is blocking some ports between clients and servers.


Kenneth ML || Please remember, if you see a post that helped you please click Vote on the left side of the response, and if it answered your question please click Mark As Answer.


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

Cryptoware & hidden drives?

Hi all,

So the inevitable has happened. A couple of clients not paying enough attention to email attachments have been hit by Crypto strains of malware.

I have been asked by the boss to create a plan to try and mitigate more occurrences. This will involve many things including backups and it is backups that I'd like to discuss and ask for more idea's and advice on.

As we know an external drive connected to a Windows Server 2012 R2 server that is setup as standard in wbadmin will not assign the drive a letter essentially 'hiding' the drive from the windows explorer interface.

My question which massive amounts of googling has not shed anymore light on is this...

I know crypto malware will run riot anywhere the user's login token has access to locally and in the network but...is crypto capable of identifying and running on drives the users token should be unaware of and not be able to see?

In other words unless a backup is run on an already affected system will the integrity of the Windows Server 2012 R2 backup stay intact?

As always, thanks in advance...

durrie.


Reply:

If the user who got nailed with ransomware has rights to the backup location then backup files can be encrypted with ransomware. If the user is a USER and does not have domain admin rights, the backup files will not be impacted.

What many do is set up a specific "backup" user that only runs the backup and no user logs in as that backup user.


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

Thanks Sue,

That was my understanding too...a users access token should not be able to get anywhere near the servers (SMB shares they have been granted access to aside) let alone discover and encrypt the data on drives hidden under the servers hood?

My bosses are banging on about making wbadmin do things it natively was not designed to do...i.e. rotate drives or have multiple offsite drives and copies running because the clients are too cheap to buy feature rich enterprise level backup software solutions.

To me the answer is not more backups it's better policy and much more granular security design which previous admins so blindingly neglected to implement despite ADDS being precisely designed to do just that?

So far my suggestions include.

1. Remove 'local admins' permissions from users who have it...*sigh*...yes I still have to have this argument with my managers in the year 2016!?!?!

2. Enable and enforce UAC with secure desktop prompts via GPO.

3. Ensure access based enumeration is enabled on all data shares.

4. Ensure the NTFS permissions are as restrictive as needs be on all data shares

5. Disable RDP on servers. We use another industry standard remote support tool.

6. Use service accounts with complex passwords for wbadmin backup operations (and any other service requirements)

7. Increase the backup drive pool to run twice a day incrementals to reduce the data loss window if an outbreak occurred.


  • Edited by durrie Tuesday, December 6, 2016 8:52 PM additional phrase added.

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

I would add utilize fsrm to help in monitoring for when it occurs  https://fsrm.experiant.ca/

Review your current spam filters and adjust accordingly, use some sort of email hygiene in front of your mailserver.

Review application whitelisting - either upgrade to Windows 10 enterprise to give you applocker control via group policy or check out www.whitecloudsecurity.com

Patch it or remove it -- i.e. use group policy to ensure that flash is 'click to run' on Chrome and consider blocking it in IE


------------------------------------
Reply:
Excellent tips, thank you so much Sue.

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

quotation price and LOA

Hi,

How can I get the quotation price and letter of authorization of microsoft windows advanced server?

Can i set recipient to sender user mail box. Example in one time only sent mail to 100 users in O365

Hello Support,

Can i set recipient to sender user mail box. Example in one time only sent mail to 100 users in O365.

Can i block Bcc option in O365 mailbox


Reply:

Hi Pradeep,

Please use powershell to do the same. Please refer below link for the same.

https://technet.microsoft.com/en-us/library/bb310760(v=exchg.141).aspx



Regards,

Sarfaraz



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

Backup fails with error code 0x80070002 / Assigning drive letter for system-reserved partition helps, but why ...?

Hi,

seems the Backup problem with error code 0x80070002 struck me as well:

Backup fails with only 0x80070002 and no further information. I'm not doing a backup for the whole drive,
but for selected folders from several partitions (being on the same physical HDD).

I've read lots and lots of threads here, so here is what I tried so far and what I can give as information:

- System is Windows 7 Pro 64-bit

- trying to back up to 1.5 TB external HDD (Western Digital) connected via USB

- system has 8 GB RAM, but chipset is Intel P55 so I guess I don't have Nvidia-based USB
  (device manager says "Intel(R) 5 Series/3400 Series Chipset Family USB Enhanced Host Controller - 3B34").
   So I guess the Nvidia USB fix mentioned elsewhere does not apply as well

- concerning shadowcopy storage area:
   Situation was that used/assigned/maximum size was nearly the same values, but I changed it to be the following (and it did not make any difference
   after a reboot):
 
   C:\Windows\system32>vssadmin list shadowstorage
vssadmin 1.1 - Verwaltungsbefehlszeilenprogramm des Volumeschattenkopie-Dienstes

(C) Copyright 2001-2005 Microsoft Corp.

Schattenkopie-Speicherassoziation
   Für Volume: (C:)\\?\Volume{06d90074-b8bd-11de-be0f-806e6f6e6963}\
   Schattenkopie-Speichervolume: (C:)\\?\Volume{06d90074-b8bd-11de-be0f-806e6f6e
6963}\
   Verwendeter Schattenkopie-Speicherbereich: 9.196 GB (4%)
   Zugewiesener Schattenkopie-Speicherbereich: 9.412 GB (4%)
   Max. Schattenkopie-Speicherbereich: 21.474 GB (11%)

- in another thread I found something about USN journal on system-reserved partition after having installed Acronis True Image Home 2010 (which I also tried and removed again). But my output for this is as follows:

C:\Windows\system32>fsutil usn queryjournal h:
Fehler:  Das Datenträgeränderungsjournal ist nicht aktiviert.

- no dual boot configuration - system was a clean install of Windows 7-64-Pro, no other OS added afterwards

- I checked the registry for the paths for the profiles, seems to be alright (did not check this any more because of the workaround
  I found (see below))

- did a chkdsk /R on all three source partitions (where I take data from for the backup) and on the target partition (on external HDD):
  no errors found

What I finally found as a workaround the following:

If no drive letter is assigned to the small system-reserved partition (containing bcd), backup fails with the above
problem. Upon reboot, I also see error event 24620 from Bitlocker-Driver in the event log ("Überprüfung des verschlüsselten Volumes: Die Volumeinformationen auf "\\?\Volume{06d90073-b8bd-11de-be0f-806e6f6e6963}" können nicht gelesen werden.") where the volume id refers to the small
system-reserved partition (checked it in the registry when I (for testing) assigned a drive letter to that partition). Noteworthy that
I *NEVER* did anything with BitLocker (and remember, my version is Win7-64-PRO).

BUT if I assign a drive letter to the partition and reboot, I don't see the BitLocker error event in the log and backup works.

This behaviour can be reproduced (take away drive letter, reboot -> BitLocker error event, backup will fail. Reassign drive letter,
reboot -> no BitLocker error, backup works).

(Backup worked in the past when I tried it in order to compare it to more sophisticated tools, and I think at that time there also was no drive letter assigned to that partition, but I'm not 100% sure about this)

Can you please explain that? Of course I do not want to waste a drive letter for that partition only to make backup work.

Regards,
Mario
  • Changed type Bikash Agrawala Friday, March 19, 2010 12:57 PM Customer not responding
  • Changed type Bikash Agrawala Friday, March 19, 2010 12:57 PM Customer not responding

Reply:
Hello,
  thank you for bringing your problem to us and trying out different options.

  The behaviour of backup succeeding with drive letter assigned to the system volume but failing without the drive letter assigned is a weird one.  As also mentioned you see a bitlocker error without the drive letter and no error with the drive letter, this may not be a backup related
problem but we need to confirm. The Windows Backup expects all the volumes that have bitlocker enabled on it to be in unlocked state. We
will try to investigate this issue.


Can you please zip the folder %windir%\logs\WindowsBackup and send it to
bikasha-nospam@microsoft.com (Use the highlighted part only) for analyzing the problem. Please keep the subject of the email same as this thread for easy tracking.

Also since there is a kb http://support.microsoft.com/kb/976972 related to this problem I would suggest to contact the support to check if the KB is applicable in your case. The "Get Help Now" on the top right hand side has the link to contact
support.

Also to resolve your issue faster I would suggest to start a parallel thread in the following forum specifying the bitlocker problem as this could be cause of the problem.

http://social.technet.microsoft.com/Forums/en-US/winserverfiles/threads

Thanks,

Bikash Agrawala [MSFT]

--------------------------------------------------------------------------------- This posting is provided "AS IS" with no warranties, and confers no rights

 


Thanks, Bikash Agrawala [MSFT] --------------------------------------------------------------------------------- This posting is provided "AS IS" with no warranties, and confers no rights
  • Edited by Bikash Agrawala Wednesday, March 10, 2010 9:19 AM Additional information

------------------------------------
Reply:
Hello,
   can you please send us the logs to help you better and also update on whether or not the suggested KB was installed.

Thanks,

Bikash Agrawala [MSFT]

--------------------------------------------------------------------------------- This posting is provided "AS IS" with no warranties, and confers no rights


Thanks, Bikash Agrawala [MSFT] --------------------------------------------------------------------------------- This posting is provided "AS IS" with no warranties, and confers no rights

------------------------------------
Reply:
Hello Mario,
   can you please provide us the information requested as above to help you resolve your issue.
Thanks, Bikash Agrawala [MSFT] --------------------------------------------------------------------------------- This posting is provided "AS IS" with no warranties, and confers no rights

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

I have the exact same issue as the OP on W764bit with BL. Two things may have caused this 1)  installation of another HDD and unencryption of BL along with reincryption of both the old and new drives or 2) installation of Computrace (which apprarently tinkers with the MBR).

Have searched for a solution high and dry to no avail. Did SFC, tinkered with registry, start/restart services all to no avail.

Bikash can you help me?

 

 


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

Thanks!

I recently got this same error, and none of the solutions I googled worked. This one did. I assigned a drive letter to the small 100MB system reserved partition, and now the backup runs.

I am using Windows 7 64 bit, but not Bitlocker. I am however using TrueCrypt to encrypt an external disk holding another backup (not from my computer, but from Veeam backup, backing up a virtual server). The external disk I am backing up my pc to, is not encrypted in any way.

 

Regards

Karl


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

Thanks!

I recently got this same error, and none of the solutions I googled worked. This one did. I assigned a drive letter to the small 100MB system reserved partition, and now the backup runs.

.....


It is very annoying problem with MS backup on Windows 7. See my message - http://social.technet.microsoft.com/Forums/en-US/windowsbackup/thread/3c1c57de-11d2-4497-bd02-959d22e48184

I think it is bug in Backup.

Regards

Sergey


  • Edited by Serg-V Wednesday, February 1, 2012 6:04 AM

------------------------------------
Reply:
I had the same problem. Windows 7 Pro 64 bit clean install, backup always fails with error code 0x80070002. Spent hours searching to no avail. Almost gave up when I finally found this thread. Assigning a drive letter to the hidden 100MB system reserved partition solved the problem like a charm. Question is: why? If it's a bug of Win7 backup, MS should address it ASAP as I can imagine the problem will be widespread.

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

Assigning the drive letter worked for me.  Thanks - couldn't find the answer anywhere else.


------------------------------------
Reply:
Can you explain to me how to go about assigning a drive letter to the bcd portion of the C drive?  I also have not been able to back up computer since 2014 in April.  I receive the error code 0X80070002 each time a backup occurs. Thanks for any help.  

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

Thanks!

I recently got this same error, and none of the solutions I googled worked. This one did. I assigned a drive letter to the small 100MB system reserved partition, and now the backup runs.

I am using Windows 7 64 bit, but not Bitlocker. I am however using TrueCrypt to encrypt an external disk holding another backup (not from my computer, but from Veeam backup, backing up a virtual server). The external disk I am backing up my pc to, is not encrypted in any way.

 

Regards

Karl


No dice! Did not work.

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

Microsoft tech support commited a cyber crime against me

I was looking to purchase a new Surface for my daughter to use in a Graphics Design major. I researched and talked with many industry professionals for requirements etc.   I called Microsoft to ask some questions. Sales was unable to tell me how much RAM a Surface can be upgraded to (they knew it was offered in 8 and 16mb RAM but not what max was).   I asked the online customer support person and was transferred to Tech Services.   TS opened a new discussion window.

Tech Services, Maria B., was very unhelpful.  She kept telling me the website had the info but would not tell me what it was.  Insisted on showing me the site on my computer - thus she requested access to control my computer (an HP btw). I was stupid and allowed her just so I could show her how wrong she was.  Which was true since she was unable to show me, then gave me a phone number that went no where (rang 10 times then a busy signal, tried it 5 times).

It was at this point that I started to fill out a Microsoft survey about my experiences.  I clicked on #1 (poor) and suddenly Maria took my cursor and changed it to 5.   I changed it back to 1 and she then closed the entire survey window.   I complained and told her explicitly not to change anything on my computer, I said you no longer  have  any rights or authority.  Leave my computer alone.  Upon which she claimed that she was sorry and it was an accident.  I said no, it was on purpose since you first changed the response rating.  And to stop all activity.  I started to copy and paste our transcript into a word doc for my files.

Well, Maria B went on to close the transcript window, the other manager's dialog window I had open (it was still active since I was also talking on that line), and any and all documentation I had started to created for my records.  She actually was deleting my files off my computer.  That is a crime.  Especially after I told her to stop.

Do not trust Microsoft Tech Support.  I registered a complaint but they were suddenly "unable to retrieve the exchange".  I wanted to get info to buy a computer and instead Microsoft tech support committed a crime against me. 

  • Moved by Richard MuellerMVP Wednesday, December 7, 2016 12:29 AM Not a TechNet Wiki question

Reply:

You have posted in the wrong forum. This forum is for questions and discussions about the TechNet Wiki. I have not found a forum that seems appropriate.

Edit: You might post in an Answers/Community forum dedicated to security, such as:

https://answers.microsoft.com/en-us/windows/forum/windows_7-security-winsec?tab=Threads

You can change the Windows version. Click on "Participate" and select "Ask a Question". The Answers/Community forums are on a different platform, so we cannot move this question there. You will need to post again. Sorry.


Richard Mueller - MVP Enterprise Mobility (Identity and Access)



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

I'd ask here about microsoft surface.

https://answers.microsoft.com/en-us/surface

For your issue with store there is no forum for the microsoft store. You have to contact them directly.

https://www.microsoftstore.com/store/msusa/en_US/DisplayHelpContactUsPage

 

 

 



Regards, Dave Patrick ....
Microsoft Certified Professional
Microsoft MVP [Windows Server] Datacenter Management

Disclaimer: This posting is provided "AS IS" with no warranties or guarantees, and confers no rights.



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

Querying over untyped XML field - Performance issue

Dear Friends,

I am testing querying performance over untyped XML field;

According to my experients I found that that indexing untyped XML column decrease querying time performance.

Could you please see the details below?

Testing Environment 

  • Intel Core i5 3.20 GHz
    RAM: 12 GB
  • OS: 64 bit Windows 8.1 Enterprise
  • SQL Server 2014 

Sample Data

Then I tested the sample data after I inserted it in xml field in the following database


Query 1:

SELECT * FROM dbo.Document D WHERE D.DocumentTypeID = 2 AND D.Data.exist('//person/age/text()[. > 18]') = 1 AND D.Data.exist('//person/age/text()[. < 30]') = 1 AND D.Data.exist('//person/dateborn/text()[. > xs:dateTime(''1999-05-18T00:00:00'')]') = 1

Query 2:

SELECT M.CustomerId, M.OrderId, M.OrderAmount, D.ProductId, D.Qty  FROM  (  	SELECT D.ID, D.DocumentTypeID,   				D.Data.value('(/MyOrder/OrderId/text())[1]', 'int') AS OrderId,  				D.Data.value('(/MyOrder/CustomerId[1]/text())[1]', 'int') AS CustomerId,  				D.Data.value('(/MyOrder/OrderAmount[1]/text())[1]', 'float') AS OrderAmount    	FROM dbo.Document D   	WHERE	D.DocumentTypeID = 1 AND   		D.Data.exist('/MyOrder/OrderAmount/text()[. > 3000]') = 1 AND     		D.Data.exist('/MyOrder/OrderDate/text()[. > xs:dateTime(''2015-01-01T00:00:00'')]') = 1 AND    		D.Data.exist('/MyOrder/OrderDate/text()[. < xs:dateTime(''2016-01-01T00:00:00'')]') = 1    ) M INNER JOIN  (  	SELECT D.ID, D.DocumentTypeID,   			D.Data.value('(/MyOrderDetail/OrderId/text())[1]', 'int') AS OrderId,						  			D.Data.value('(/MyOrderDetail/ProductId/text())[1]', 'int') AS ProductId,  			D.Data.value('(/MyOrderDetail/Qty/text())[1]', 'int') AS Qty  																			  	FROM dbo.Document D   	WHERE	D.DocumentTypeID = 4  ) D ON M.OrderId = D.OrderId

Then I record the following results

Many thanks,



  • Edited by Anas Tina Monday, December 5, 2016 1:33 PM Restructuring Post

Reply:

It is not exactly clear what your question is, or if there is a question. Without sample data and table definitions it is not possible to make any tests of my own. (And we need these things as scripts so that we can copy and paste into a query window.)

What I can say is that you should replace //person/age/text() with person/age/text() or provide a full path. When you provide a wild-card path like /, SQL Server needs to search all over the XML document.


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

Many thanks Mr. Erland Sommarskog

I'm uploading full backup of the database (Size = 250 MB) ...

  • Edited by Anas Tina Monday, December 5, 2016 11:24 AM Removing Sig.

------------------------------------
Reply:
  • Edited by Anas Tina Monday, December 5, 2016 7:55 AM grammar error

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

I downloaded and restored the database. I then run the first query in your original post. I got:

Msg 208, Level 16, State 1, Line 7
Invalid object name 'dbo.Document'.

Looking in sys.tables there two tables t1 and Table1 in the database. Since I don't like to guess what you ran, this is where I stop my investigations for now.


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

Weird !

I re-downloaded the .bak file and checked Sha1 hash value; It is identical to the local copy I have!!

Could you please check you are on the correct database?


 

Many thanks

  • Edited by Anas Tina Tuesday, December 6, 2016 11:30 AM Delete Sig.

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

Oops! My bad! That's what I get for running queries after midnight. I forget to change the database after restore. Blush!

I was not really able to repeat your results. What I observed though is that your queries returns a significant amount of data. In that case, a lot of the time is spend on rendering the grid in SSMS, so that is what you are measuring, not the the query execution.

When I run the first query as

SELECT * INTO #temp
FROM dbo.Document D WHERE   D.DocumentTypeID = 2 AND       D.Data.exist('/person/age/text()[. > 18]') = 1  AND       D.Data.exist('/person/age/text()[. < 30]') = 1  AND       D.Data.exist('/person/dateborn/text()[. > xs:dateTime(''1999-05-18T00:00:00'')]') = 1
DROP TABLE #temp

It seems to take two seconds no matter I have the indexes in place or not. I did not try all secondary index, only the one with FOR PROPERTY. Also, it does not seem to matter whether I have // or /.


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

Can I configure the TRAPS tab within the SNMP settings?

Hi,

We have SNMP configured via Group Policy and it works fine for the information under the Security Tab.  However, is there a way to also configure the information under the Traps tab?  I need to add the same Community Name from Security to Traps and specify an IP address.  I can't seem to find any way to do that.

I did see the option for "Specify traps for public community" but I'm not sure if that works since I'm not using the Public Community.

Thanks.

Is it possible to create workflows based on day time

Hello,

I was wondering if it's possible to create different workflows based on day time.

for example, if incident is created before 5 PM, the first workflow will assign it to support group 1.

and if created after 5 PM, the 2nd workflow assigns the incidents to the 2nd group.

Thanks in advance.

Regards,

Abdelmonem


Reply:
I think it can be done via Orchestrator " I will give it a try". however, can it be done using only scsm?

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

First: We do every automation with orchestrator, since I do not want to support two diffrent systems.

I do not know any out of the box function for this, so you'll have to do this with the authoring tool and/or the XML Editor -if it is possible. so maybe it is also easier with orchestrator.


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

"redirect to" option for Outlook rule the same as "auto-forward"?

Running Exchange 2010 SP3.  It appears that the mechanisms are different and email will be redirected without being auto-forwarded. Using a transport rule I can prevent auto-forwarding of emails but rules that are in place where the email is redirected are still going through.  There doesn't appear to be an option in the transport rules that prevents redirecting specifically.

First, if that's the case, why you have the capability to prevent auto-forwarding with a transport rule and then provide a mechanism to the user to circumvent that measure? Second, if the above is not the case and there is a way to set up a transport rule to prevent the redirects, can someone please point it out because I don't see the option.

Thanks!


  • Edited by Maglinger Tuesday, November 22, 2016 8:38 PM Added Exchange version.
  • Changed type David Wang_Moderator Monday, November 28, 2016 7:58 AM

Reply:

Transport rules and Outlook rules are two completely different things.  There is no "circumventing".  What you're asking for isn't a feature of Exchange. 

You do have the option of blocking automatic forwards to the Internet.  See Example 2 here:

https://technet.microsoft.com/en-us/library/aa997857(v=exchg.160).aspx

This is one of those cases where my autosignature applies.


Ed Crowley MVP "There are seldom good technological solutions to behavioral problems."
Celebrating 20 years of providing Exchange peer support!


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

Hi,

I am a little confused about your description.

How do you configure the transport rule to prevent auto-forwarding of emails?

In my lab, I can't find the related action to finish the thing:


Best Regards,
David Wang
TechNet Community Support


Please remember to mark the replies as answers if they helped.
If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.



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

This shows how to do it in the ECP:

https://blogs.technet.microsoft.com/lystavlen/2012/04/10/how-to-prevent-internal-users-from-autoforwaring-mails-to-external-recipients/

I think what you're looking for in the EMC Transport Rule is under Conditions, "if the message type is Message Type", which is 7th from the bottom of my list."

"Redirects" is not an option there.


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

Transport rules and Outlook rules are two completely different things.  There is no "circumventing".  What you're asking for isn't a feature of Exchange. 

You do have the option of blocking automatic forwards to the Internet.  See Example 2 here:

https://technet.microsoft.com/en-us/library/aa997857(v=exchg.160).aspx

This is one of those cases where my autosignature applies.


Ed Crowley MVP "There are seldom good technological solutions to behavioral problems."
Celebrating 20 years of providing Exchange peer support!

I understand the difference between transport rules and Outlook rules.  To phrase the question differently - why have the ability to block auto-forwarding using a transport rule and not a redirect?  They both essentially take an email and sent it to another address.  If you are using a Transport Rule to block auto-forwarding and the user figures out that they can use Redirect instead - what use is in the Transport Rule to block auto-forwarding? I don't understand why redirects aren't included in the Message Types options in the Transport Rules.

I have also reviewed using remote domains and in looking at the EMC options I still don't see anything that specifically prevents "redirects", only "automatic forwards".  Does "automatic forwards" apply to "redirects"?  This method is also a problem because I don't want it for all users, just specific ones.


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

Hi,

I understand you want to prevent internal users from redirect mails to other recipients.

Based on my test, when user has configure a inbox redirect rule, we can find the message headers like X-MS-Exchange-Inbox-Rules-Loop: userb@senderdomain.com

As a workaround, I suggest you create a test user and try to create the following transport rule to block the redirect mails for test.

Also please check if the transport rule will block other types of mails.


Best Regards,
David Wang
TechNet Community Support


Please remember to mark the replies as answers if they helped.
If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.




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

Hi,

I understand you want to prevent internal users from redirect mails to other recipients.

Based on my test, when user has configure a inbox redirect rule, we can find the message headers like X-MS-Exchange-Inbox-Rules-Loop: userb@senderdomain.com

As a workaround, I suggest you create a test user and try to create the following transport rule to block the redirect mails for test.

Also please check if the transport rule will block other types of mails.


Best Regards,
David Wang
TechNet Community Support


Please remember to mark the replies as answers if they helped.
If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.




If I use the method you are suggesting then would I have to list every external email domain I wanted blocked, right?  I'm wanting to block auto-forwarding and redirects to all external email addresses for specific groups or users.

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

Hi,

As above mentioned, the message headers like X-MS-Exchange-Inbox-Rules-Loop: user@yourdomain.com, only sender domain name will be displayed on the message header, so we don't need to list every external email domain you wanted blocked.

If you want to block redirects to all external email addresses for specific groups or users, you can add some other conditions for test:


Best Regards,
David Wang
TechNet Community Support


Please remember to mark the replies as answers if they helped.
If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.


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

Hi,

As above mentioned, the message headers like X-MS-Exchange-Inbox-Rules-Loop: user@yourdomain.com, only sender domain name will be displayed on the message header, so we don't need to list every external email domain you wanted blocked.

If you want to block redirects to all external email addresses for specific groups or users, you can add some other conditions for test:


Best Regards,
David Wang
TechNet Community Support


Please remember to mark the replies as answers if they helped.
If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.


Thanks David - this works pretty well except it appears that I can't wildcard the email addresses to block.  I've tried entering with * and also the message header "contains" and neither of those seem to work.  It's only happening when I enter the full email address.  Any further suggestions?

------------------------------------
Reply:
Hi,
Yes, I made a test, when using "*".domain.com or *.domain.com, the rule will not work.
So I suggest we enter the full emails address as a workaround.

Best Regards,
David Wang
TechNet Community Support


Please remember to mark the replies as answers if they helped.
If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.


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

Hosting Pack no longer works with Office365 (They refuse to assist!)

I just wanted to let everyone know that Microsoft has completely wrote off the Hosting Pack and is no longer even supporting it (Even though they said they will if it is already installed for a while longer).

The problem is Office365 has to add people using the Hosting Pack as a "Hosting Provider" in order for you to federate/dynamic federate with Office365. They REFUSE to do this even though they have done it in the past. Microsoft is completely writing off the Hosting Pack and forcing partners to do something else or move to their system due to a large incompatibility with other providers (including Office365).

I have worked for over a month with both the Lync team and the Office365 team trying to get this to work and they ended up turning me down. You can see here at one time it was working and they were adding hosting providers: http://www.careexchange.in/federation-from-lync-hosting-packs-lhp-2013-tenants-to-lync-online-is-not-working/

Just letting everyone know!

  • Changed type jim-xu Tuesday, December 6, 2016 4:43 AM

Reply:

I just wanted to let everyone know that Microsoft has completely wrote off the Hosting Pack and is no longer even supporting it (Even though they said they will if it is already installed for a while longer).

The problem is Office365 has to add people using the Hosting Pack as a "Hosting Provider" in order for you to federate/dynamic federate with Office365. They REFUSE to do this even though they have done it in the past. Microsoft is completely writing off the Hosting Pack and forcing partners to do something else or move to their system due to a large incompatibility with other providers (including Office365).

I have worked for over a month with both the Lync team and the Office365 team trying to get this to work and they ended up turning me down. You can see here at one time it was working and they were adding hosting providers: http://www.careexchange.in/federation-from-lync-hosting-packs-lhp-2013-tenants-to-lync-online-is-not-working/

Just letting everyone know!

  • Merged by jim-xu Tuesday, December 6, 2016 4:38 AM Related Topic

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

Hi Quadrantids,

Welcome to our forum.

Thanks for sharing. I also share a Microsoft team blog about Lync hosting pack with you:

https://blogs.technet.microsoft.com/nexthop/2016/10/20/information-regarding-all-versions-of-the-lync-hosting-pack/


Best Regards,
Jim Xu
TechNet Community Support


Please remember to mark the replies as answers if they helped.
If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.


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

Welcome to Windows Server 2016 Essentials forum

New forum created, first post.

 

 



Regards, Dave Patrick ....
Microsoft Certified Professional
Microsoft MVP [Windows Server] Datacenter Management

Disclaimer: This posting is provided "AS IS" with no warranties or guarantees, and confers no rights.


HTA opening new window, closing the other

Got it working
  • Edited by VisualExstasy Monday, December 5, 2016 10:50 PM
  • Changed type Bill_Stewart Friday, February 17, 2017 3:55 PM
  • Moved by Bill_Stewart Friday, February 17, 2017 3:55 PM Unanswerable drive-by question

Reply:

There is no way anyone is going to guess at what you are asking.  We cannot see your screen or your code.


\_(ツ)_/


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

Microsoft Visio deel vastzetten

Hi,

kan iemand mij helpen? Ik zou graag een deel in Microsoft Visio vast willen zetten zodat dit mee scrollt als ik naar rechts ga. Dus zeg maar zoals je in excel de eerste kolom zou freezen.


Reply:

Hi,

Thank you for visiting our forum.

The forum that you posted is the English only forum for Microsoft Visio product. To avoid any misunderstanding that may be caused by the translation tool and better help you, please describe your issue in English. Alternatively, you could post this issue in the right forums with the correct language.

You can also contact the local support from the link below:

https://support.microsoft.com/en-us/assistedsupportproducts 

Thanks for your cooperation and your understanding is greatly appreciated.

Note: You can choose the right language by clicking the Change button from the left bottom of the page, and select the right product.

Regards,

Ethan Hua


Please remember to mark the replies as answers if they helped.
If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.


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

Hi all,

I would like to freeze the first colom in Visio. Is this possible?


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

Visual Studio Code + Powershell

Hi Guys,

I was following the wonderful tutorial blog  https://foxdeploy.com/2015/09/08/powershell-guis-how-to-handle-events-and-create-a-tabbed-interface/   . If anybody tried this blog example to built GUI please help me.

 I tried to make a tool myself as below , but I'm stuck.

Visual Studio Screenshot:

I copied the XAML code from visual studio to PowerShell script using Multi-line variable @" "@

When i run PowerShell Script got below error:

CODE:

    #ERASE ALL THIS AND PUT XAML BELOW between the @" "@   #i did some modification in this script  $inputXML = @"  <Window x:Class="Remote_App.MainWindow"   xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"   xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"   xmlns:d="http://schemas.microsoft.com/expression/blend/2008"   xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"   xmlns:local="clr-namespace:Remote_App"   mc:Ignorable="d"   Title="Remote Application" Height="489.979" Width="696.926">   <Grid>   <TabControl x:Name="tabControl">   <TabItem Header="ComputerName">   <Grid >   <Grid.RowDefinitions>   <RowDefinition Height="17*"/>   <RowDefinition Height="197*"/>   </Grid.RowDefinitions>      <Image x:Name="image1" Stretch="UniformToFill" HorizontalAlignment="Left" Height="98" Margin="9,65.158,0,0" VerticalAlignment="Top" Width="245" Source="C:\Users\Stephen\Dropbox\Speaking\Demos\module 13\Foxdeploy_DEPLOY_large.png" Grid.Row="1"/>   <Label x:Name="label2" Content="" HorizontalAlignment="Left" Margin="-12,13,0,0" VerticalAlignment="Top" Height="163" Width="691" Background="#FF38393C" Grid.RowSpan="2"/>   <Label x:Name="label" Content="Label" HorizontalAlignment="Left" VerticalAlignment="Top" Height="13" Width="691" Background="#FF2856B6" Margin="-12,0,0,0"/>   <TextBox x:Name="ComputerName" TextWrapping="Wrap" HorizontalAlignment="Left" Height="32" Margin="28,14.158,0,0" Text="TextBox" VerticalAlignment="Top" Width="198" FontSize="14.667" TextChanged="ComputerName_TextChanged" Grid.Row="1"/>   <Button x:Name="Verify" Content="Verify Online" HorizontalAlignment="Left" Margin="249,12.158,0,0" VerticalAlignment="Top" Width="93" Height="32" Grid.Row="1"/>   </Grid>   </TabItem>   <TabItem Header="System Info" IsEnabled="False">   <Grid >   <Grid.ColumnDefinitions>   <ColumnDefinition Width="141*"/>   <ColumnDefinition Width="538*"/>   </Grid.ColumnDefinitions>   <Button x:Name="Load_diskinfo_button" Content="get-DiskInfo" HorizontalAlignment="Left" Height="24" Margin="10,10,0,0" VerticalAlignment="Top" Width="77"/>   <ListView x:Name="disk_listView" HorizontalAlignment="Left" Height="137" Margin="10,40,0,0" VerticalAlignment="Top" Width="379" RenderTransformOrigin="0.498,0.169" Grid.ColumnSpan="2">   <ListView.View>   <GridView>   <GridViewColumn Header="Drive Letter" DisplayMemberBinding ="{Binding 'Drive Letter'}" Width="80"/>   <GridViewColumn Header="Drive Label" DisplayMemberBinding ="{Binding 'Drive Label'}" Width="80"/>   <GridViewColumn Header="Size(MB)" DisplayMemberBinding ="{Binding Size(MB)}" Width="80"/>   <GridViewColumn Header="FreeSpace%" DisplayMemberBinding ="{Binding FreeSpace%}" Width="80"/>   </GridView>   </ListView.View>   </ListView>     <Label x:Name="DiskLabel" Content="Disk info for system: " HorizontalAlignment="Left" Height="24" Margin="117,10,0,0" VerticalAlignment="Top" Width="197" Foreground="#FFFAFAFA" Grid.ColumnSpan="2"/>   </Grid>     </TabItem>   <TabItem Header="Services" IsEnabled="False">   <Grid >   <Button x:Name="Load_services" Content="Load Services" HorizontalAlignment="Left" Height="24" Margin="10,10,0,0" VerticalAlignment="Top" Width="77"/>   <ListView x:Name="service_listView" HorizontalAlignment="Left" Height="378" Margin="10,40,0,0" VerticalAlignment="Top" Width="659">   <ListView.View>   <GridView>   <GridViewColumn Header="Name" DisplayMemberBinding ="{Binding ServiceName}" Width="80"/>   <GridViewColumn Header="DisplayName" DisplayMemberBinding ="{Binding 'DisplayName'}" Width="100"/>   <GridViewColumn Header="Status" DisplayMemberBinding ="{Binding 'Status'}" Width="80"/>   <GridViewColumn Header="AutoStart" DisplayMemberBinding ="{Binding 'AutoStart'}" Width="80"/>   </GridView>   </ListView.View>   </ListView>   <Button x:Name="Stop_service" Content="Stop Service" HorizontalAlignment="Left" Height="24" Margin="129,10,0,0" VerticalAlignment="Top" Width="77"/>   <Button x:Name="Start_service" Content="Start Service" HorizontalAlignment="Left" Height="24" Margin="258,10,0,0" VerticalAlignment="Top" Width="77"/>   </Grid>   </TabItem>   <TabItem Header="Process" IsEnabled="False">   <Grid>   <Grid.ColumnDefinitions>   <ColumnDefinition Width="45*"/>   <ColumnDefinition Width="83*"/>   <ColumnDefinition Width="551*"/>   </Grid.ColumnDefinitions>   <Button x:Name="Load_process" Content="Load Services" HorizontalAlignment="Left" Height="24" Margin="10,10,0,0" VerticalAlignment="Top" Width="77" Grid.ColumnSpan="2"/>   <ListView x:Name="process_listView" HorizontalAlignment="Left" Height="378" Margin="10,40,0,0" VerticalAlignment="Top" Width="659" Grid.ColumnSpan="3">   <ListView.View>   <GridView>   <GridViewColumn Header="Handles" DisplayMemberBinding ="{Binding ServiceName}" Width="80"/>   <GridViewColumn Header="NPM" DisplayMemberBinding ="{Binding 'DisplayName'}" Width="100"/>   <GridViewColumn Header="PM" DisplayMemberBinding ="{Binding 'Status'}" Width="80"/>   <GridViewColumn Header="WS" DisplayMemberBinding ="{Binding 'AutoStart'}" Width="80"/>   <GridViewColumn Header="VM" DisplayMemberBinding ="{Binding 'AutoStart'}" Width="80"/>   <GridViewColumn Header="CPU" DisplayMemberBinding ="{Binding 'AutoStart'}" Width="80"/>   <GridViewColumn Header="ID" DisplayMemberBinding ="{Binding 'AutoStart'}" Width="80"/>   <GridViewColumn Header="ProcessID" DisplayMemberBinding ="{Binding 'AutoStart'}" Width="80"/>   </GridView>   </ListView.View>   </ListView>     </Grid>   </TabItem>   <Label x:Name="label3" Content="Label" Height="100" Width="100"/>   </TabControl>     </Grid>  </Window>    "@     $inputXML = $inputXML -replace 'mc:Ignorable="d"','' -replace "x:N",'N' -replace '^<Win.*', '<Window'  [void][System.Reflection.Assembly]::LoadWithPartialName('presentationframework')  [xml]$XAML = $inputXML  #Read XAML     $reader=(New-Object System.Xml.XmlNodeReader $xaml)    try{$Form=[Windows.Markup.XamlReader]::Load( $reader )}  catch [System.Management.Automation.MethodInvocationException] {   Write-Warning "We ran into a problem with the XAML code. Check the syntax for this control..."   write-host $error[0].Exception.Message -ForegroundColor Red   if ($error[0].Exception.Message -like "*button*"){   write-warning "Ensure your &lt;button in the `$inputXML does NOT have a Click=ButtonClick property. PS can't handle this`n`n`n`n"}  }  catch{#if it broke some other way :D   Write-Host "Unable to load Windows.Markup.XamlReader. Double-check syntax and ensure .net is installed."   }    #===========================================================================  # Store Form Objects In PowerShell  #===========================================================================    $xaml.SelectNodes("//*[@Name]") | %{Set-Variable -Name "WPF$($_.Name)" -Value $Form.FindName($_.Name)}    Function Get-FormVariables{  if ($global:ReadmeDisplay -ne $true){Write-host "If you need to reference this display again, run Get-FormVariables" -ForegroundColor Yellow;$global:ReadmeDisplay=$true}  write-host "Found the following interactable elements from our form" -ForegroundColor Cyan  get-variable WPF*  }    Get-FormVariables    #===========================================================================  # Use this space to add code to the various form elements in your GUI  #===========================================================================     $Form.Add_Loaded({$WPFComputerName.Text = $env:COMPUTERNAME})     $WPFVerify.Add_Click({if (Test-Connection $WPFComputerName.Text -Count 1 -Quiet){   write-host "$($WPFComputerName.Text ) responded, unlocking"   $WPFtabControl.Items[1..3] | % {$_.IsEnabled = $true}   }   else{   write-host "$($WPFComputerName.Text ) did not respond, staying locked"   $WPFtabControl.Items[1..3] | % {$_.IsEnabled = $false}   }  })    $WPFLoad_diskinfo_button.Add_Click({  Function Get-DiskInfo {  param($computername =$env:COMPUTERNAME)     Get-WMIObject Win32_logicaldisk -ComputerName $computername | Select-Object @{Name='ComputerName';Ex={$computername}},`   @{Name='Drive Letter';Expression={$_.DeviceID}},`   @{Name='Drive Label';Expression={$_.VolumeName}},`   @{Name='Size(MB)';Expression={[int]($_.Size / 1MB)}},`   @{Name='FreeSpace%';Expression={[math]::Round($_.FreeSpace / $_.Size,2)*100}}   }       Get-DiskInfo -computername $WPFComputerName.Text | % {$WPFdisk_listView.AddChild($_)}  $WPFDiskLabel.Content = "Disk info for system $($WPFComputerName.Text)"    })    $WPFLoad_services.Add_Click({   $WPFservice_listView.Items.Clear()   get-service -ComputerName $WPFComputerName.Text | % {$WPFservice_listView.AddChild($_)}   })    $WPFStart_service.Add_Click({   $WPFservice_listView.SelectedItems | % {   write-host "Starting $($_.ServiceName) on $($WPFComputerName.Text)"   ($stat = gwmi Win32_Service -ComputerName $WPFComputerName.Text | ? Name -like $_.ServiceName).StartService()   if ($stat -eq 0){write-host "--Success"}   elseif ($stat -eq 2){   write-host "--need elevated perms"   }   else{   write-host "--error"   }     }     write-host "Refreshing Services on $($WPFComputerName.Text)"   $WPFservice_listView.Items.Clear()   get-service -ComputerName $WPFComputerName.Text | % {$WPFservice_listView.AddChild($_)}  })    $WPFStop_service.Add_Click({   $WPFservice_listView.SelectedItems | % {   write-host "Stopping $($_.ServiceName) on $($WPFComputerName.Text)"   ($stat = gwmi Win32_Service -ComputerName $WPFComputerName.Text | ? Name -like $_.ServiceName).StopService()   if ($stat -eq 0){write-host "--Success"}   elseif ($stat -eq 2){   write-host "--need elevated perms"   }   else{   write-host "--error"   }     }     write-host "Refreshing Services on $($WPFComputerName.Text)"   $WPFservice_listView.Items.Clear()   get-service -ComputerName $WPFComputerName.Text | % {$WPFservice_listView.AddChild($_)}  })    $WPFLoad_process.Add_Click({   $WPFprocess_listView.Items.Clear()   get-process -ComputerName $WPFComputerName.Text | % {$WPFprocess_listView.AddChild($_)}   })        #Adding items to a dropdown/combo box   #$vmpicklistView.items.Add([pscustomobject]@{'VMName'=($_).Name;Status=$_.Status;Other="Yes"})     #Setting the text of a text box to the current PC name    #$WPFtextBox.Text = $env:COMPUTERNAME     #Adding code to a button, so that when clicked, it pings a system  # $WPFbutton.Add_Click({ Test-connection -count 1 -ComputerName $WPFtextBox.Text  # })  #===========================================================================  # Shows the form  #===========================================================================  write-host "To show the form, run the following" -ForegroundColor Cyan  '$Form.ShowDialog() | out-null'  

I modified the FoxDeploy Script by adding process tab code but still that also not working.

XAML part:

Powershell Part:

it will be great if u guys can help me to sort out this issue.


Sunish Surendran.k



  • Edited by Sunish Surendran k Monday, December 5, 2016 1:33 PM
  • Changed type Bill_Stewart Friday, February 17, 2017 3:55 PM
  • Moved by Bill_Stewart Friday, February 17, 2017 3:55 PM This is not "fix/debug/rewrite my script for me" forum

Reply:

Sorry, but debugging a 100+ line script is beyond the scope of this forum. Read this first:

This forum is for scripting questions rather than script requests


-- Bill Stewart [Bill_Stewart]


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

Hi Bill,

Thanks for your reply,i knw it is bit difficult to debug whole script.I was expecting those who tried the example in the mentioned blog -Foxdeploy can easily figure out mycode. 


Sunish Surendran.k


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

Using WPF from PowerShell is very challenging as it assume an excellent working knowledge of XAML and PowerShell with runspaces.

If you are not well trained in these then you will find this nearly impossible.

You should post issues with the code to the blog author.


\_(ツ)_/


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

A quick note.  The XAML is invalid.  It was written for an earlier version of WPF or the controls referenced are not valid.


\_(ツ)_/


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

Use this to test your raw XAML until the XAML can be loaded without errors:

[xml]$xaml = @'  <Window x:Class="Remote_App.MainWindow"   xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"   xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"   xmlns:d="http://schemas.microsoft.com/expression/blend/2008"   xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"   xmlns:local="clr-namespace:Remote_App"   mc:Ignorable="d"   Title="Remote Application" Height="489.979" Width="696.926">   <Grid>   <TabControl x:Name="tabControl">   <TabItem Header="ComputerName">   <Grid >   <Grid.RowDefinitions>   <RowDefinition Height="17*"/>   <RowDefinition Height="197*"/>   </Grid.RowDefinitions>      <Image x:Name="image1" Stretch="UniformToFill" HorizontalAlignment="Left" Height="98" Margin="9,65.158,0,0" VerticalAlignment="Top" Width="245" Source="C:\Users\Stephen\Dropbox\Speaking\Demos\module 13\Foxdeploy_DEPLOY_large.png" Grid.Row="1"/>   <Label x:Name="label2" Content="" HorizontalAlignment="Left" Margin="-12,13,0,0" VerticalAlignment="Top" Height="163" Width="691" Background="#FF38393C" Grid.RowSpan="2"/>   <Label x:Name="label" Content="Label" HorizontalAlignment="Left" VerticalAlignment="Top" Height="13" Width="691" Background="#FF2856B6" Margin="-12,0,0,0"/>   <TextBox x:Name="ComputerName" TextWrapping="Wrap" HorizontalAlignment="Left" Height="32" Margin="28,14.158,0,0" Text="TextBox" VerticalAlignment="Top" Width="198" FontSize="14.667" TextChanged="ComputerName_TextChanged" Grid.Row="1"/>   <Button x:Name="Verify" Content="Verify Online" HorizontalAlignment="Left" Margin="249,12.158,0,0" VerticalAlignment="Top" Width="93" Height="32" Grid.Row="1"/>   </Grid>   </TabItem>   <TabItem Header="System Info" IsEnabled="False">   <Grid >   <Grid.ColumnDefinitions>   <ColumnDefinition Width="141*"/>   <ColumnDefinition Width="538*"/>   </Grid.ColumnDefinitions>   <Button x:Name="Load_diskinfo_button" Content="get-DiskInfo" HorizontalAlignment="Left" Height="24" Margin="10,10,0,0" VerticalAlignment="Top" Width="77"/>   <ListView x:Name="disk_listView" HorizontalAlignment="Left" Height="137" Margin="10,40,0,0" VerticalAlignment="Top" Width="379" RenderTransformOrigin="0.498,0.169" Grid.ColumnSpan="2">   <ListView.View>   <GridView>   <GridViewColumn Header="Drive Letter" DisplayMemberBinding ="{Binding 'Drive Letter'}" Width="80"/>   <GridViewColumn Header="Drive Label" DisplayMemberBinding ="{Binding 'Drive Label'}" Width="80"/>   <GridViewColumn Header="Size(MB)" DisplayMemberBinding ="{Binding Size(MB)}" Width="80"/>   <GridViewColumn Header="FreeSpace%" DisplayMemberBinding ="{Binding FreeSpace%}" Width="80"/>   </GridView>   </ListView.View>   </ListView>     <Label x:Name="DiskLabel" Content="Disk info for system: " HorizontalAlignment="Left" Height="24" Margin="117,10,0,0" VerticalAlignment="Top" Width="197" Foreground="#FFFAFAFA" Grid.ColumnSpan="2"/>   </Grid>     </TabItem>   <TabItem Header="Services" IsEnabled="False">   <Grid >   <Button x:Name="Load_services" Content="Load Services" HorizontalAlignment="Left" Height="24" Margin="10,10,0,0" VerticalAlignment="Top" Width="77"/>   <ListView x:Name="service_listView" HorizontalAlignment="Left" Height="378" Margin="10,40,0,0" VerticalAlignment="Top" Width="659">   <ListView.View>   <GridView>   <GridViewColumn Header="Name" DisplayMemberBinding ="{Binding ServiceName}" Width="80"/>   <GridViewColumn Header="DisplayName" DisplayMemberBinding ="{Binding 'DisplayName'}" Width="100"/>   <GridViewColumn Header="Status" DisplayMemberBinding ="{Binding 'Status'}" Width="80"/>   <GridViewColumn Header="AutoStart" DisplayMemberBinding ="{Binding 'AutoStart'}" Width="80"/>   </GridView>   </ListView.View>   </ListView>   <Button x:Name="Stop_service" Content="Stop Service" HorizontalAlignment="Left" Height="24" Margin="129,10,0,0" VerticalAlignment="Top" Width="77"/>   <Button x:Name="Start_service" Content="Start Service" HorizontalAlignment="Left" Height="24" Margin="258,10,0,0" VerticalAlignment="Top" Width="77"/>   </Grid>   </TabItem>   <TabItem Header="Process" IsEnabled="False">   <Grid>   <Grid.ColumnDefinitions>   <ColumnDefinition Width="45*"/>   <ColumnDefinition Width="83*"/>   <ColumnDefinition Width="551*"/>   </Grid.ColumnDefinitions>   <Button x:Name="Load_process" Content="Load Services" HorizontalAlignment="Left" Height="24" Margin="10,10,0,0" VerticalAlignment="Top" Width="77" Grid.ColumnSpan="2"/>   <ListView x:Name="process_listView" HorizontalAlignment="Left" Height="378" Margin="10,40,0,0" VerticalAlignment="Top" Width="659" Grid.ColumnSpan="3">   <ListView.View>   <GridView>   <GridViewColumn Header="Handles" DisplayMemberBinding ="{Binding ServiceName}" Width="80"/>   <GridViewColumn Header="NPM" DisplayMemberBinding ="{Binding 'DisplayName'}" Width="100"/>   <GridViewColumn Header="PM" DisplayMemberBinding ="{Binding 'Status'}" Width="80"/>   <GridViewColumn Header="WS" DisplayMemberBinding ="{Binding 'AutoStart'}" Width="80"/>   <GridViewColumn Header="VM" DisplayMemberBinding ="{Binding 'AutoStart'}" Width="80"/>   <GridViewColumn Header="CPU" DisplayMemberBinding ="{Binding 'AutoStart'}" Width="80"/>   <GridViewColumn Header="ID" DisplayMemberBinding ="{Binding 'AutoStart'}" Width="80"/>   <GridViewColumn Header="ProcessID" DisplayMemberBinding ="{Binding 'AutoStart'}" Width="80"/>   </GridView>   </ListView.View>   </ListView>     </Grid>   </TabItem>   <Label x:Name="label3" Content="Label" Height="100" Width="100"/>   </TabControl>   </Grid>  </Window>  '@  Add-Type -AssemblyName PresentationFramework  $reader = New-Object System.Xml.XmlNodeReader($xaml)  $Form = [Windows.Markup.XamlReader]::Load($reader)  

You will have to learn how to develop and debug complex software. 


\_(ツ)_/


  • Edited by jrv Monday, December 5, 2016 5:50 PM

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

You cannot reference any code behind or any event bindings such as:

 TextChanged="ComputerName_TextChanged"


\_(ツ)_/


------------------------------------
Reply:
Thanks for your reply,i knw it is bit difficult to debug whole script.I was expecting those who tried the example in the mentioned blog -Foxdeploy can easily figure out mycode.

That isn't the point. Yes, we can take the time to figure out the code. The problem is that it is presumptuous to ask others to do so. You will have better success if you ask the original author for help or study on your own to figure out what's broken. I would recommend starting with the basics, which is what we recommend to everyone. Nobody starts out with calculus; you have to start with basic mathematics first.


-- Bill Stewart [Bill_Stewart]


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

Access to Power Pivot

Once my power pivot was working now it gives me an error message.
  • Moved by litdev Monday, December 5, 2016 3:16 PM
  • Moved by Dave PatrickMVP Monday, December 5, 2016 3:33 PM

Reply:
Is this a question about the Small Basic programming language? I don't recognise the term Power Pivot.

Jan [ WhTurner ] The Netherlands


------------------------------------
Reply:
I'm afraid you will clearly have to give more information.

------------------------------------
Reply:
An which (detailed) error message are you getting?

Olaf Helper

[ Blog] [ Xing] [ MVP]


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

Using psexec to affect a remote computer

Just to share, I use PsExec to do a very similar thing.  If you have the correct credentials (with rights) to connect to another machine, of course you can delete remote pc files, execute programs, etc.  Of course this is not a web server that is doing the work on some random machine, but yes, you can do remote work with the correct rights.  GL
  • Split by Bill_Stewart Wednesday, December 7, 2016 10:55 PM Off-topic

Server 2012 R2 RDS Connection Broker - Disconnected Sessions

Hi All,

Was hoping someone may have encountered a similar issue.

My 2012 R2 RDS topology is as follows:

1 x RDS Web Access / Gateway Server (roles installed on the same server)
3 x Session Host Servers
1 x Connection Broker Server

The three session host servers are added to the same collection, and within this collection there is one published RemoteApp which is available via RDS Web Access.

When the user opens the RemoteApp and leaves it idle for a period of time, it closes and then leaves a disconnected session behind on the terminal server, which is fine and expected.

If the user then uses the remote desktop client to make a connection to the RDS farm (i.e. mstsc /v:farm-name, not using the RemoteApp), i'm finding that the connection broker does not reconnect the user to the disconnected session from the RemoteApp, and a new session is created on one of the other session hosts. So the user now has one active session, and one disconnected session across the session hosts.

If the user were to open the RemoteApp again, they are then reconnected to the disconnected session from the RemoteApp.

Is this normal behaviour? Is a session initiated by a RemoteApp treated differently from a user attempting to establish a full desktop session to the RDS farm?

I have the "Enable automatic reconnection" setting enabled on the collection where the RemoteApp is published.

Kind Regards,
Simon

Reply:

Hi thevillag3idi0t,

To correctely connect to your Remote Desktop ressources (RemoteApp or Remote Desktop), you have to access RD Web Access portal and then launch the specific ressource or retrieve RDP files (shortcuts) placed by default in the Workspace folder.

Typing MSTSC /V:Farm_Name is not an official connection method or distribution method.

By using MSTSC tool with /v parameter, you are not sure that your RDP request is sent to the right RD Connection Broker so the automatic reconnection via RDCB is not used, it's for this reason that a new Remote Session is created (your are not reconnected to the RD Session Host that hosts the old session but to the new one).

HK.


Hicham KADIRI | Just Another IT Guy

Livre de référence RDS 2012 R2 désormais disponible !
RDS 2012 R2 reference book is now available !


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

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...